Browse Source

enhance the sleep with some pod / node information

master
Nico Schottelius 1 year ago
parent
commit
3e42a36e65
  1. 20
      generic/busybox-sleep.yaml

20
generic/busybox-sleep.yaml

@ -12,3 +12,23 @@ spec:
env:
- name: NICOTEST
value: "correct environment"
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: MY_POD_SERVICE_ACCOUNT
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName

Loading…
Cancel
Save