kube-plugin/README.md
2025-03-13 09:11:47 +01:00

32 lines
764 B
Markdown

# my kubectl plugin scripts
To install
```
git https://git.rre.nu/jonas/kube-plugin.git "$HOME/kube-plugin"
export PATH=$PATH:$HOME/git/kube-plugin
```
Verify that the scripts are picked up in `kubectl`
```
kubectl plugin list
```
## kubectl-rsh
Usage:
kubectl rsh [nodeName]
### Variables
| Name | Default | Desciption |
|------|---------|------------|
| KUBECTL_RSH_IMAGE | docker.io/library/busybox | The image used by the pod creating the shell |
| KUBECTL_RSH_IMAGE_TAG | latest | Image tag to use |
| KUBECTL_RSH_NAMESPACE | default | Namespace to create the rsh pod in |
| KUBECTL_RSH_POD_CREATE_TIMEOUT | 3 | Minutes to wait before failing to create pod |
## kubectl-deprecated_api
Lists APIs flagged as deprecated
Usage:
kubectl deprecated-api