secrest
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "myapp.fullname" . }}-config
|
||||
|
||||
data:
|
||||
|
||||
{{- range $key, $value := .Values.config }}
|
||||
{{ $key }}: "{{ $value }}"
|
||||
{{- end }}
|
||||
@@ -38,6 +38,11 @@ spec:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "myapp.fullname" . }}-config
|
||||
- secretRef:
|
||||
name: {{ include "myapp.fullname" . }}-secret
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
|
||||
metadata:
|
||||
name: {{ include "myapp.fullname" . }}-secret
|
||||
|
||||
type: Opaque
|
||||
|
||||
stringData:
|
||||
|
||||
{{- range $key, $value := .Values.secret }}
|
||||
{{ $key }}: "{{ $value }}"
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user