Open shell for the pod
$ kubectl shell xxxxxxxxxxxxxxxxx
This is snippet code to open shell into first available pod.
$ kubectl shell $(kubectl get pods --field-selector=status.phase=Running -o name | head -n 1)
$ go install github.com/mattn/kubectl-shell@latest
MIT
Yasuhiro Matsumoto (a.k.a. mattn)