...
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ kubectl krew search NAME DESCRIPTION INSTALLED krew Package manager for kubectl plugins. yes [...] |
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ kubectl krew index add kvaps https://github.com/kvaps/krew-index
WARNING: You have added a new index from "https://github.com/kvaps/krew-index"
The plugins in this index are not audited for security by the Krew maintainers.
Install them at your own risk.
sansae@win10pro-worksp:/workspaces$ kubectl krew install kvaps/node-shell
Updated the local copy of plugin index.
Updated the local copy of plugin index "kvaps".
Installing plugin: node-shell
Installed plugin: node-shell
\
| Use this plugin:
| kubectl node-shell
| Documentation:
| https://github.com/kvaps/kubectl-node-shell
| Caveats:
| \
| | You need to be allowed to start privileged pods in the cluster
| /
/ |
Code Block |
---|
sansae@win10pro-worksp:/workspaces$ kubectl get node
NAME STATUS ROLES AGE VERSION
aks-nodepool1-31236416-vmss000000 Ready agent 70d v1.18.14
sansae@win10pro-worksp:/workspaces$
sansae@win10pro-worksp:/workspaces$ kubectl node-shell aks-nodepool1-31236416-vmss000000
spawning "nsenter-fbbiu2" on "aks-nodepool1-31236416-vmss000000"
If you don't see a command prompt, try pressing enter.
root@aks-nodepool1-31236416-vmss000000:/#
root@aks-nodepool1-31236416-vmss000000:/# date
Wed Apr 7 10:10:51 UTC 2021
root@aks-nodepool1-31236416-vmss000000:/# exit
logout
pod "nsenter-fbbiu2" deleted |
Info | ||
---|---|---|
| ||
...