mount secret as file

This commit is contained in:
MiniDigger | Martin 2022-09-03 10:09:25 +02:00
parent 2c554ca275
commit a01c7a2299
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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: