Skip to content

Commit 6755f28

Browse files
thisishueyKatie Horne
andauthored
Add region env variable & replace stackdriver flag (coder#621)
Co-authored-by: Katie Horne <katie@coder.com>
1 parent e17e2d8 commit 6755f28

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

setup/kubernetes/google.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ for more information on each parameter used.
4343

4444
Regardless of which option you choose, be sure to replace the following
4545
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.
4749

4850
> Both options include the use of the `enable-network-policy` flag, which
4951
> [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" \
7779
--metadata disable-legacy-endpoints=true \
7880
--scopes "https://www.googleapis.com/auth/cloud-platform" \
7981
--num-nodes "2" \
80-
--enable-stackdriver-kubernetes \
82+
--logging=SYSTEM,WORKLOAD \
83+
--monitoring=SYSTEM \
8184
--enable-ip-alias \
8285
--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" \
8587
--default-max-pods-per-node "110" \
8688
--addons HorizontalPodAutoscaling,HttpLoadBalancing \
8789
--enable-autoupgrade \
@@ -117,11 +119,11 @@ clusters create "$NEW_CLUSTER_NAME" \
117119
--metadata disable-legacy-endpoints=true \
118120
--scopes "https://www.googleapis.com/auth/cloud-platform" \
119121
--num-nodes "2" \
120-
--enable-stackdriver-kubernetes \
122+
--logging=SYSTEM,WORKLOAD \
123+
--monitoring=SYSTEM \
121124
--enable-ip-alias \
122125
--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" \
125127
--default-max-pods-per-node "110" \
126128
--addons HorizontalPodAutoscaling,HttpLoadBalancing \
127129
--enable-autoupgrade \

0 commit comments

Comments
 (0)