@@ -43,7 +43,9 @@ for more information on each parameter used.
43
43
44
44
Regardless of which option you choose, be sure to replace the following
45
45
parameters to reflect the needs of your workspace: ` PROJECT_ID ` ,
46
- ` NEW_CLUSTER_NAME ` , ` ZONE ` .
46
+ ` NEW_CLUSTER_NAME ` , ` ZONE ` , and ` REGION ` . You can [ choose the zone and
47
+ region] ( https://cloud.google.com/compute/docs/regions-zones#choosing_a_region_and_zone )
48
+ that makes the most sense for your location.
47
49
48
50
> Both options include the use of the ` enable-network-policy ` flag, which
49
51
> [ creates a Calico cluster] ( https://kubernetes.io/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy/ ) .
@@ -77,11 +79,11 @@ gcloud beta container --project "$PROJECT_ID" \
77
79
--metadata disable-legacy-endpoints=true \
78
80
--scopes "https://www.googleapis.com/auth/cloud-platform" \
79
81
--num-nodes "2" \
80
- --enable-stackdriver-kubernetes \
82
+ --logging=SYSTEM,WORKLOAD \
83
+ --monitoring=SYSTEM \
81
84
--enable-ip-alias \
82
85
--network "projects/$PROJECT_ID/global/networks/default" \
83
- --subnetwork \
84
- "projects/$PROJECT_ID/regions/$ZONE/subnetworks/default" \
86
+ --subnetwork "projects/$PROJECT_ID/regions/$REGION/subnetworks/default" \
85
87
--default-max-pods-per-node "110" \
86
88
--addons HorizontalPodAutoscaling,HttpLoadBalancing \
87
89
--enable-autoupgrade \
@@ -117,11 +119,11 @@ clusters create "$NEW_CLUSTER_NAME" \
117
119
--metadata disable-legacy-endpoints=true \
118
120
--scopes "https://www.googleapis.com/auth/cloud-platform" \
119
121
--num-nodes "2" \
120
- --enable-stackdriver-kubernetes \
122
+ --logging=SYSTEM,WORKLOAD \
123
+ --monitoring=SYSTEM \
121
124
--enable-ip-alias \
122
125
--network "projects/$PROJECT_ID/global/networks/default" \
123
- --subnetwork \
124
- "projects/$PROJECT_ID/regions/$ZONE/subnetworks/default" \
126
+ --subnetwork "projects/$PROJECT_ID/regions/$REGION/subnetworks/default" \
125
127
--default-max-pods-per-node "110" \
126
128
--addons HorizontalPodAutoscaling,HttpLoadBalancing \
127
129
--enable-autoupgrade \
0 commit comments