2021-06-04 12:26:03 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: busybox-sleep
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: busybox
|
|
|
|
image: busybox
|
|
|
|
args:
|
|
|
|
- sleep
|
|
|
|
- "1000000"
|
2021-06-04 12:35:59 +00:00
|
|
|
env:
|
|
|
|
- name: NICOTEST
|
|
|
|
value: "correct environment"
|
2021-06-08 13:54:28 +00:00
|
|
|
- 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
|