Created
April 10, 2018 10:14
-
-
Save ipedrazas/926bd0ef8632c778cf0efda3c2aaf19c to your computer and use it in GitHub Desktop.
create lab cluster with expiry date
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
gcloud beta container \ | |
--project "kubernetes-prototype-197913" \ | |
clusters create "lab-1" \ | |
--zone "europe-west2-a" \ | |
--username "admin" \ | |
--cluster-version "1.9.6-gke.0" \ | |
--machine-type "n1-standard-1" \ | |
--image-type "COS" \ | |
--disk-size "100" \ | |
--node-labels expiry=20180411,env=lab \ | |
--scopes "https://www.googleapis.com/auth/bigquery","https://www.googleapis.com/auth/compute","https://www.googleapis.com/auth/devstorage.read_write","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 "3" \ | |
--network "default" \ | |
--no-enable-cloud-logging \ | |
--no-enable-cloud-monitoring \ | |
--subnetwork "default" \ | |
--labels expiry=20180411 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment