Comment on page
Fetch DigitalOcean Kubernetes Cluster kubeconfig for T4K UI Authentication
This page describes how to pull the kubeconfig file using doctl CLI for the DigitalOcean Kubernetes Cluster without exec section in it which causes authentication failure on T4K Management UI.
The DigitalOcean Kubernetes Cluster provides two ways to download the kubeconfig of the cluster using
After authenticating to the DogitalOcean Kubernetes service using Access Token with
doctl, user can either run
savecommand to get the kubeconfig of the desired cluster. The
savecommand will set the context in the existing kubeconfig file at
showcommand will print the output which user has to save and then copy to
Here are the commands:
$ doctl kubernetes cluster kubeconfig show <k8s cluster ID>
$ doctl kubernetes cluster kubeconfig save <k8s cluster ID>
$ doctl kubernetes cluster kubeconfig save 85e2ea36-29f0-4a9e-8d62-230c88a6fb39
T4K UI authentication does not support the kubeconfig which contain the
execsection. User is encouraged to use the
showoption and save the kubeconfig in a different file using redirect operator
>to use it for authentication on T4K UI.
Here is an example:
$ doctl kubernetes cluster kubeconfig save 85e2ea36-29f0-4a9e-8d62-230c88a6fb39 > /root/tvk_ui_kubeconfig
This will create a new file
/root/tvk_ui_kubeconfigwhich won't have
execsection and can be used for T4K UI authentication.