mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-11 14:52:01 +08:00
mount secret as file
This commit is contained in:
parent
2c554ca275
commit
a01c7a2299
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user