Created
January 4, 2022 06:51
-
-
Save janakiramm/b72a1958412813b2a40e49bf4aad9dc7 to your computer and use it in GitHub Desktop.
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
# Create DOKS clusters | |
doctl k8s cluster create do-demo-blr1 --region blr1 --size s-4vcpu-8gb --count=1 | |
doctl k8s cluster create do-demo-sgp1 --region sgp1 --size s-4vcpu-8gb --count=1 | |
doctl k8s cluster create do-demo-lon1 --region lon1 --size s-4vcpu-8gb --count=1 | |
# Configure kubeconfig | |
doctl k8s clusters kubeconfig save do-demo-blr1 | |
doctl k8s clusters kubeconfig save do-demo-sgp1 | |
doctl k8s clusters kubeconfig save do-demo-lon1 | |
# Rename the context | |
kubectx lon1=do-lon1-do-demo-lon1 | |
kubectx sgp1=do-sgp1-do-demo-sgp1 | |
kubectx blr1=do-blr1-do-demo-blr1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment