Skip to main content

Devops

Quickly Inspect Kubernetes Pods' Environment Variables and Secrets

·5 mins
Something that I love is to be able to troubleshoot fast (or at least have the right tooling for it). Working in a Kubernetes environment, I often find myself needing to get pods environment variables and secrets either for debugging purposes or auditing. I wanted something that would give me everything I need fast and at a glance in my terminal. In this blog post I’ll share the little script I created to achieve this and how to add it to your shell as a function.