https://github.com/mtardy/kubectl-purgectx
kubectl purge context removes the context and its associated user and cluster from a kubeconfig file.
https://github.com/mtardy/kubectl-purgectx
cluster context kubectl plugin sh user
Last synced: over 1 year ago
JSON representation
kubectl purge context removes the context and its associated user and cluster from a kubeconfig file.
- Host: GitHub
- URL: https://github.com/mtardy/kubectl-purgectx
- Owner: mtardy
- License: apache-2.0
- Created: 2021-10-22T15:08:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T15:30:49.000Z (over 4 years ago)
- Last Synced: 2025-01-21T02:44:28.093Z (over 1 year ago)
- Topics: cluster, context, kubectl, plugin, sh, user
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl purgectx
kubectl purge context removes the context and its associated user and cluster
from a kubeconfig file.
## Installation
Using curl:
```bash
curl -LO https://github.com/mtardy/kubectl-purgectx/raw/master/kubectl-purgectx
chmod +x ./kubectl-purgectx
sudo mv ./kubectl-purgectx /usr/local/bin/kubectl-purgectx
```
## Usage
```console
$ kubectl purgectx
usage: ./kubectl-purgectx
available contexts:
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
minikube minikube minikube default
```