Well I've finally done it. Have been threatening to do it for a few years, but finally found the time yesterday to build the tool I've always wanted. `anypod` https://github.com/frankwiles/kube-anypod
Comments
Log in with your Bluesky account to leave a comment
This in concert with the great kubens tool makes it trivial to get the name of one of the pods for a given workload (Deployment, StatefulSet, or DaemonSet) because it OFTEN does not matter which you just need one of them.
This doesn't by any means replace the frequent need for k9s https://k9scli.io but fills the need for me when I just need to exec into ANY of the pods. Now I run `anypod -e ` and it will exec me into one, as I rarely care which.
Awesome yeah this is one of those things I kept assuming someone would work into kubectl itself but never happened. Figured everyone was annoyed by it like me 🤣
I envision this being really useful for debugging when I know a pod is about to go away. Can’t tell you the number of times I’ve “get pods” and chosen one, only for it to be gone by the time that I exec.
Comments