Skip to content

Instantly share code, notes, and snippets.

@alanshaw
Last active October 9, 2020 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanshaw/c94c3040ec87b140efb098a4968e4802 to your computer and use it in GitHub Desktop.
Save alanshaw/c94c3040ec87b140efb098a4968e4802 to your computer and use it in GitHub Desktop.
Switching k8 contexts for DO
# what even contexts do I have?
kubectl config get-contexts
# switch to other one
kubectl config use-context CONTEXT_NAME
# ===
# for new or update existing cluster credentials:
# ===
# what even DO auth do I have?
doctl auth list
# switch to other one
doctl auth switch --context NAME
# download
doctl kubernetes cluster kubeconfig save CLUSTER_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment