https://github.com/qingwave/kube-nodeshell
Access to kuberentes nodes via nsenter pod,similar with kubectl debug but more powerful
https://github.com/qingwave/kube-nodeshell
kubectl kubectl-plugins nsenter
Last synced: over 1 year ago
JSON representation
Access to kuberentes nodes via nsenter pod,similar with kubectl debug but more powerful
- Host: GitHub
- URL: https://github.com/qingwave/kube-nodeshell
- Owner: qingwave
- Created: 2021-11-15T07:04:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-13T02:25:48.000Z (about 4 years ago)
- Last Synced: 2025-01-16T13:52:42.558Z (over 1 year ago)
- Topics: kubectl, kubectl-plugins, nsenter
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kube-nodeshell
Access to kubernetes node via `nsenter`, similar with `kubectl debug` but more powerful
## Install
```bash
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
```bash
kubectl nodeshell {node_name}
```
Install kube-nodeshell daemonset on all node for frequently used
```bash
# install daemonset
kubectl nodeshell -i
# access to node
kubectl nodeshell {node_name}
```
Others:
```bash
kubectl nodeshell -h
```
## Links
- https://qingwave.github.io/k8s-debug-nsenter