github.com/emicklei/gmig@v1.18.3-0.20240405210147-57c940a1c6cf/examples/036_create_kubernetes_cluster_v2.yaml (about) 1 2 # create kubernetes cluster v2 3 # 4 # file: 036_create_kubernetes_cluster_v2.yaml 5 6 do: 7 - gcloud beta container clusters create "valentio-cluster-v2" 8 --verbosity $GCLOUD_VERBOSITY 9 --cluster-version $GKE_VERSION 10 --project $PROJECT 11 --zone $ZONE 12 --username "admin" 13 --machine-type "n1-standard-2" 14 --image-type "COS" 15 --disk-type "pd-standard" 16 --disk-size "100" 17 --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" 18 --num-nodes "3" 19 --enable-stackdriver-kubernetes 20 --enable-ip-alias 21 --network "projects/$PROJECT/global/networks/default" 22 --subnetwork "projects/$PROJECT/regions/europe-west1/subnetworks/default" 23 --enable-autoscaling --min-nodes "3" --max-nodes "10" 24 --addons HorizontalPodAutoscaling 25 --enable-autoupgrade 26 --enable-autorepair 27 28 undo: 29 - gcloud beta container clusters delete "valentio-cluster-v2" --quiet 30 31 view: 32 - gcloud beta container clusters list 33 - gcloud beta container clusters describe valentio-cluster-v2