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

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.

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
```