kubernetes

Get environment variable from kubernetes pod?


What's the best way to list out the environment variables in a kubernetes pod?

(Similar to this, but for Kube, not Docker.)


Solution

  • kubectl exec -it <pod_name> -- env