Last active
October 9, 2020 11:47
-
-
Save alanshaw/c94c3040ec87b140efb098a4968e4802 to your computer and use it in GitHub Desktop.
Switching k8 contexts for DO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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