Post #1313365
2026-04-10 06:45 UTC
You apply a deployment on your cluster, the pod crashes, you describe the pod and everything seems fine.
You’d need to have a shell into the container, but you can’t because it has already crashed and exited.
Today I learned that Kubernetes can let you create a copy of the pod and give you a shell to troubleshoot it
https://ergaster.org/til/kubernetes-crash-shell/
#kubernetes #homelab #selfHosting
Replies (4)
-
@blenderfox@mastodon.xyz 2026-04-10 07:10
@thibaultamartin Dang it, why didn't I know about this? 🤦
-
@blenderfox@mastodon.xyz 2026-04-10 07:10
@thibaultamartin also I wonder whether it's worth asking the k9s project to add this as a pod option on the UI?
-
@alexanderdyas@mindly.social 2026-04-10 07:35
@thibaultamartin Nice! Saves a lot of faff temporarily redefining the pod to get similar access.
-
@mmeier@social.mei-home.net 2026-04-10 17:12
@thibaultamartin Oh this is cool! thanks for linking it. I was always just overwriting the COMMAND in the manifest for testing purposes.