Instantly share code, notes, and snippets.

Embed
What would you like to do?
GCP_PROJECT="wp-search-bot"
GKE_CLUSTER="wp-search-cluster"
GCP_ZONE="us-east1-b"
NODE_COUNT="1"
INSTANCE_TYPE="n1-standard-1"
GKE_VERSION="1.10.7-gke.1"
gcloud beta container \
--project ${GCP_PROJECT} clusters create ${GKE_CLUSTER} \
--zone ${GCP_ZONE} \
--username "admin" \
--cluster-version ${GKE_VERION} \
--machine-type ${INSTANCE_TYPE} --image-type "COS" \
--disk-type "pd-standard" --disk-size "100" \
--scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" \
--num-nodes ${NODE_COUNT} \
--enable-cloud-logging --enable-cloud-monitoring \
--network "projects/wp-search-bot/global/networks/default" \
--subnetwork "projects/wp-search-bot/regions/us-east1/subnetworks/default" \
--additional-zones "us-east1-b","us-east1-c","us-east1-d" \
--addons HorizontalPodAutoscaling,HttpLoadBalancing \
--no-enable-autoupgrade --enable-autorepair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment