Sign inSign up

jpweber/kube-debug

By jpweber

•Updated about 4 years ago

Container to be ran in kubernetes for debugging and troubleshooting uses.

Image
0

5.0K

jpweber/kube-debug repository overview

Docker Repository on Quay

This is meant to be used as a debug container.

You can invoke it with:

kubectl run debug -ti --image=jpweber/kube-debug:latest --restart=Never --image-pull-policy=Always -- /bin/bash

When you exit the container you can reconnect with:

kubectl exec -ti debug -- /bin/bash

When finished you can delete it with:

kubectl delete pod debug

There is a recent version of kubectl on the pod as well as curl dig bash and tshark.

If you want kubectl to do useful things you will want to create a reasonable service account and role binding. For example:

kubectl create serviceaccount debug
kubectl create clusterrolebinding debug --clusterrole=admin --serviceaccount=default:debug
kubectl run debug -ti --image=jpweber/kube-debug:latest --image-pull-policy=Always --overrides='{ "spec": { "serviceAccountName": "debug" } }'   --restart=Never -- /bin/bash

Have a bunch of fun!

This was originally made by https://github.com/coresolve⁠. Thought it was a great idea, but I wanted to maintain my own.

Tag summary

Content type

Image

Digest

sha256:f1d4d22dc…

Size

37.5 MB

Last updated

about 4 years ago

docker pull jpweber/kube-debug