diff --git a/chart/templates/deployment-backend.yaml b/chart/templates/deployment-backend.yaml index 8084d85f0..aa584936e 100644 --- a/chart/templates/deployment-backend.yaml +++ b/chart/templates/deployment-backend.yaml @@ -29,6 +29,10 @@ spec: serviceAccountName: {{ include "hangar.backend.serviceAccountName" . }} securityContext: {{- toYaml .Values.backend.podSecurityContext | nindent 8 }} + volumes: + - name: {{ include "hangar.fullname" . }}-backend-config-volume + secret: + secretName: {{ include "hangar.fullname" . }}-backend containers: - name: {{ .Chart.Name }} securityContext: @@ -42,6 +46,13 @@ spec: - name: management containerPort: 8081 protocol: TCP + env: + - name: spring.config.location + value: "classpath:/application.yml,/hangar/config/application.yaml" + volumeMounts: + - name: {{ include "hangar.fullname" . }}-backend-config-volume + mountPath: /hangar/config + readOnly: true livenessProbe: httpGet: path: /actuator/health/liveness diff --git a/chart/templates/secret-hangar-backend.yaml b/chart/templates/secret-hangar-backend.yaml index d85470c6f..8ba87936c 100644 --- a/chart/templates/secret-hangar-backend.yaml +++ b/chart/templates/secret-hangar-backend.yaml @@ -64,7 +64,7 @@ stringData: access-key: "todo" # todo object storage creds secret-key: "todo" bucket: "todo" - object-storage-endpoint: "todo" + object-storage-endpoint: "http://localhost:9000" logging: level: