Hacker News new | past | comments | ask | show | jobs | submit login
Kubernetes Ephemeral Containers and `kubectl debug` Command (iximiuz.com)
5 points by rajeevk on May 30, 2022 | hide | past | favorite | 1 comment



A thing that really would help in terms of debugging, is re-running a spec, with a changed command in a clean way.

Sometimes jobs fail and terminate too fast to shell in it and to see if anything is really properly configured. (mounts/secrets/etc) So usually I copy the pod spec, change the command to "sleep" and remove all the cruft that k8s doesn't allow when applying the yaml. And then run again, and then when it's "sleep"ing I can shell into it and run the commands, check the secrets and what not.

Most of the work of this approach goes into changing the command, and cleaning up the spec.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: