Skip to content

Instantly share code, notes, and snippets.

@esomore
Last active June 4, 2019 17:26
Show Gist options
  • Save esomore/b274eeea4fa347c9feea9eb1899955b2 to your computer and use it in GitHub Desktop.
Save esomore/b274eeea4fa347c9feea9eb1899955b2 to your computer and use it in GitHub Desktop.
### create new cluster and call it cosmic ###
doctl kubernetes cluster create cosmic
### add a secondary node-pool with bigger droplets for timescale ###
doctl kubernetes cluster node-pool create cosmic --name tsdb --count 4 --size s-6vcpu-16gb
### delete the default node-pool ###
doctl kubernetes cluster node-pool delete cosmic cosmic-default-pool
### list node-pools ###
doctl kubernetes cluster node-pool list cosmic
### save kubeonfig ###
doctl kubernetes cluster kubeconfig show cosmic > $HOME/cosmic.config
### check that nodes are running ###
kubectl get nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment