Create a Kubeconfig for a Kubernetes Service Account
A guide on how to create a kubeconfig for a Kubernetes service account in Omni.
Last updated
A guide on how to create a kubeconfig for a Kubernetes service account in Omni.
Last updated
To follow this guide, you will need omnictl
installed and configured. (If you haven't done so already, follow the .) You will also need also need a cluster created withing Omni.
To create a service account kubeconfig, run the following command:
This command will create a service account token with the given username and obtain a kubeconfig file for the given cluster and username.
You can now use kubectl
with the generated kubeconfig.