Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created August 29, 2020 00:50
Show Gist options
  • Save bharatmicrosystems/f7570836f5d1cf6c8d528cb97008707d to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/f7570836f5d1cf6c8d528cb97008707d to your computer and use it in GitHub Desktop.
gcloud container node-pools create preemtible-pool \
--cluster [CLUSTER_NAME] \
--zone [CLUSTER_ZONE] \
--scopes cloud-platform \
--enable-autoupgrade \
--preemptible \
--num-nodes 2 \
--node-taints cloud.google.com/gke-preemptible="true":NoSchedule \
--enable-autoscaling --min-nodes=2 --max-nodes=6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment