Skip to content

zxh326/kubectl-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl ssh plugin

based

create a Privileged in specified node and ensure host node(PID:1) all namespaces.

how to use

$ git clone https://github.com/zxh326/kubectl-ssh
$ cd kubectl-ssh
$ GO111MODULE="on" go build cmd/kubectl-ssh.go 
$ chmod +x kubectl-ssh 
$ cp kubectl-ssh /usr/local/bin/kubectl-ssh
$ kubectl ssh nodeName
$ kubectl ssh -l nodeLable

Cleanup

You can "uninstall" this plugin from kubectl by simply removing it from your PATH:

$ rm /usr/local/bin/kubectl-ssh

other

this project just want to test & study kubectl plugin go's version, you can use shell version achieve this.

todo

  • ssh to pod
  • support real ssh(get node address and ssh it)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages