Kubernetes CLI plugins
This repository contains various kubectl
plugins to facilitate recurrent
operations on a cluster.
To build and install all plugins at once, run the following command:
$ make
๐ kubectl-sa-access
This plugin allows you to generate (or edit) a kubeconfig for a specific
ServiceAccount:
Usage
usage: kubectl-sa-access [--help] [--completion] [--namespace NAMESPACE] [--in-place] [SERVICEACCOUNTNAME]
Generate kubeconfig for a ServiceAccount
positional arguments:
SERVICEACCOUNTNAME Name of the target ServiceAccount
optional arguments:
--help, -h show this help message
--completion show command completion script
--namespace NAMESPACE, -n NAMESPACE Kubernetes namespace of the target ServiceAccount
--in-place, -i If set, edit existing kubeconfig, outputs a new kubeconfig to stdout otherwise
Build and install
To build the binary in the ./build/
folder:
$ make build/kubectl-sa-access
Or if you want to install it directly:
$ make install/kubectl-sa-access
๐ License
All those plugins are released under the terms of the MIT License.