Get environment variable from kubernetes pod?

12/5/2019

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

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

-- Robert Yi
kubernetes

1 Answer

12/5/2019

kubectl exec -it <pod_name> -- env

-- Robert Yi
Source: StackOverflow