Update example-app-helm-chart/example-app/templates/deployment.yaml
This commit is contained in:
@@ -29,15 +29,20 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.app.secret }}
|
- name: {{ .Values.app.secret }}
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- name: example-app
|
||||||
- name: KUBERNETES_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
image: {{ .Values.app.image }}
|
image: {{ .Values.app.image }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: example-app
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.app.ports.http }}
|
- containerPort: {{ .Values.app.ports.http }}
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
- name: KUBERNETES_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
{{- range $key, $value := .Values.app.env }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
value: "{{ $value }}"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user