Skip to content

Commit 5679dc5

Browse files
committed
Add POD_NAME and POD_NAMESPACE to the deployment template
Signed-off-by: Richard Wall <[email protected]>
1 parent ace7bb2 commit 5679dc5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deploy/charts/venafi-kubernetes-agent/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ spec:
8989
{{- with .Values.volumeMounts }}
9090
{{- toYaml . | nindent 12 }}
9191
{{- end }}
92+
env:
93+
- name: POD_NAMESPACE
94+
valueFrom:
95+
fieldRef:
96+
fieldPath: metadata.namespace
97+
- name: POD_NAME
98+
valueFrom:
99+
fieldRef:
100+
fieldPath: metadata.name
92101
{{- if .Values.metrics.enabled }}
93102
ports:
94103
- containerPort: 8081

0 commit comments

Comments
 (0)