Skip to content

Commit 721332d

Browse files
committed
Gives init container access to pod name and namespace
1 parent 6a4c047 commit 721332d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

50kafka.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ spec:
2121
valueFrom:
2222
fieldRef:
2323
fieldPath: spec.nodeName
24+
- name: POD_NAME
25+
valueFrom:
26+
fieldRef:
27+
fieldPath: metadata.name
28+
- name: POD_NAMESPACE
29+
valueFrom:
30+
fieldRef:
31+
fieldPath: metadata.namespace
2432
command: ['/bin/bash', '/etc/kafka/init.sh']
2533
volumeMounts:
2634
- name: config

0 commit comments

Comments
 (0)