Skip to content

Access to kuberentes nodes via nsenter pod,similar with kubectl debug but more powerful

Notifications You must be signed in to change notification settings

qingwave/kube-nodeshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Kube-nodeshell

Access to kubernetes node via nsenter, similar with kubectl debug but more powerful

Install

wget https://raw.githubusercontent.com/qingwave/kube-nodeshell/main/kube-nodeshell.sh
chmod +x ./kube-nodeshell.sh
# [optional] install kubectl plugin, make sure /usr/local/bin in your PATH
sudo mv ./kube-nodeshell.sh /usr/local/bin/kubectl-nodeshell

Usage

You can use the script kube-nodeshell.sh directly, or use kubectl plugin kubectl nodeshell

Access to a special node temporarily, will create a pod and exec into it

kubectl nodeshell {node_name}

Install kube-nodeshell daemonset on all node for frequently used

# install daemonset
kubectl nodeshell -i

# access to node
kubectl nodeshell {node_name}

Others:

kubectl nodeshell -h

Links

About

Access to kuberentes nodes via nsenter pod,similar with kubectl debug but more powerful

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages