Skip to content

Instantly share code, notes, and snippets.

@takuya-andou
Created October 29, 2019 11:35
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 takuya-andou/d29fd49262af23751bee005bf01709e5 to your computer and use it in GitHub Desktop.
Save takuya-andou/d29fd49262af23751bee005bf01709e5 to your computer and use it in GitHub Desktop.
GKEのクラスターを作成するスクリプト
# キューを扱うNodeのためのNodePool
gcloud container clusters create autoscaled-cluster \
--num-nodes 2 \
--machine-type=n1-standard-1 \
--zone us-west1-a --disk-size=10\
# キューを処理するためのNodePool。preemptibleにしている。
gcloud container node-pools create preemptible-pool96 \
--cluster autoscaled-cluster --preemptible --num-nodes 0 \
--enable-autoscaling --min-nodes 0 --max-nodes 960 \
--machine-type=n1-standard-96 \
--zone us-west1-a --disk-size=10 \
--scopes=gke-default,storage-rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment