Skip to content
Snippets Groups Projects
Commit 27fb274f authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added applicationSecret

parent ec5297c8
No related branches found
No related tags found
No related merge requests found
Pipeline #7231 passed
......@@ -26,12 +26,30 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- if .Values.application.secretName }}
- name: application-secret
secret:
secretName: {{ .Values.application.secretName }}
defaultMode: 420
{{- else }}
[]
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
{{- if .Values.application.secretName }}
- name: application-secret
readOnly: true
mountPath: /app/config/production.json
subPath: production.json
{{- else }}
[]
{{- end }}
ports:
- name: http
containerPort: 3000
......
......@@ -14,6 +14,8 @@ imagePullSecrets:
- name: pull-secret
nameOverride: ""
fullnameOverride: ""
application:
secretName: ""
podAnnotations: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment