⚠️ Starting from Kubernetes version 1.22 ServiceAccount token secrets are no longer automatically created. You can read more about it here.
- kubectl
The script can be installed using brew:
brew install shini4i/tap/kubeconfig-generator
kubeconfig-generator <service_account> <namespace>
If the namespace is omitted, the currently selected namespace will be used.