Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created May 10, 2022 18:55
Show Gist options
  • Select an option

  • Save denzhel/41db98fc1bc89a8b0c76ea1833b69dd3 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/41db98fc1bc89a8b0c76ea1833b69dd3 to your computer and use it in GitHub Desktop.
digitalocean k8s save your kubeconfig

To add the kube context to your .kube directory you can use the following command:

doctl kubernetes cluster kubeconfig show <clusterName> >> ~/.kube/config_<clusterName>

The reason I did not use save is to seperate clusters to dedicated files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment