From 3e42a36e650ea4adf8dcb64026d9c0020874a125 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 8 Jun 2021 15:54:28 +0200 Subject: [PATCH] enhance the sleep with some pod / node information --- generic/busybox-sleep.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/generic/busybox-sleep.yaml b/generic/busybox-sleep.yaml index d7cb8ee..c3ccb5a 100644 --- a/generic/busybox-sleep.yaml +++ b/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