Skip to content

mattn/kubectl-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-shell

Open shell for the pod

Usage

$ 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)

Installation

$ go install github.com/mattn/kubectl-shell@latest

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)