Listing the environment variables

There’s times when you need to get a list of the environment variables within your OS or in my case, containerd instance running within Kubernetes.

Powershell

Get-ChildItem Env:

kubectl exec -it my-pod — powershell -Command “Get-ChildItem Env:”

Linux

env

kubectl exec -it — env

printenv