K8s Debugging
September 12, 2021
Get an ubuntu shell on a K8s cluster #
Run
kubectl run my-temp-shell --rm -i --tty --image ubuntu -- bash
Networking troubleshooting on a K8s cluster #
Run
kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot
Decode K8s Docker Registry Secret #
Run
k get secret/MY_SECRET_NAME -ojsonpath='{.data.\.dockerconfigjson}' | base64 -D