Created
October 29, 2019 11:35
-
-
Save takuya-andou/d29fd49262af23751bee005bf01709e5 to your computer and use it in GitHub Desktop.
GKEのクラスターを作成するスクリプト
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
# キューを扱う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