Answers for "k8s environment vars"

1

k8s env variable own name

env:
- name: POD_NAME
  valueFrom:
     fieldRef:
       fieldPath: metadata.name
- name: POD_NAMESPACE
  valueFrom:
     fieldRef:
       fieldPath: metadata.namespace
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language