An open API service indexing awesome lists of open source software.

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

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