K8s Debugging

K8s Debugging

September 12, 2021
Software
Tech, Kubernetes

Get an ubuntu shell on a K8s cluster #

Run

kubectl run my-temp-shell --rm -i --tty --image ubuntu -- bash

Ref

Networking troubleshooting on a K8s cluster #

Run

kubectl run tmp-shell --rm -i --tty --image nicolaka/netshoot

Ref

Decode K8s Docker Registry Secret #

Run

k get secret/MY_SECRET_NAME -ojsonpath='{.data.\.dockerconfigjson}' | base64 -D