We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba3e64 commit 6ab3f8cCopy full SHA for 6ab3f8c
examples/app/templates/deployment.yaml
@@ -33,6 +33,14 @@ spec:
33
secretKeyRef:
34
key: VAR2
35
name: {{ include "app.fullname" . }}-my-secret-vars
36
+ - name: APP_NAME
37
+ valueFrom:
38
+ fieldRef:
39
+ fieldPath: metadata.labels['app.kubernetes.io/name']
40
+ - name: INSTANCE_NAME
41
42
43
+ fieldPath: metadata.labels['app.kubernetes.io/instance']
44
- name: KUBERNETES_CLUSTER_DOMAIN
45
value: {{ quote .Values.kubernetesClusterDomain }}
46
image: {{ .Values.myapp.app.image.repository }}:{{ .Values.myapp.app.image.tag
@@ -78,7 +86,7 @@ spec:
78
86
- command:
79
87
- /bin/sh
80
88
- -c
81
- - echo Initializing container...
89
+ - echo 'Initializing container...'
82
90
env:
83
91
84
92
0 commit comments