Skip to content

Commit fbc2953

Browse files
chore: Setup docs for Kubernetes on Google Cloud - to handle the cloud provider's required node image change from Docker to containerd (coder#1037)
* chore: update google cloud setup for new node image requirement to containerd from docker * chore: update google cloud setup for new node image requirement to containerd from docker * fix: lint Co-authored-by: Eric Paulsen <ericpaulsen@coder.com>
1 parent 9e0c62e commit fbc2953

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

setup/kubernetes/google.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ be sure to account for the number of developers you expect to use Coder, as well
2424
as the resources they need to run their workspaces. See our guide on on
2525
[compute resources](../../guides/admin/resources.md) for additional information.
2626

27+
> In GKE version 1.24 and later, Docker-based [node image types](https://cloud.google.com/kubernetes-engine/docs/concepts/node-images)
28+
> are not supported. The examples below use `ubuntu_containerd` and
29+
> `cos_containerd` to meet this requirement. Docker-based node images will
30+
> prevent GKE cluster creation.
31+
2732
If you expect to provision GPUs to your Coder workspaces, you **must** use a
2833
general-purpose
2934
[N1 machine type](https://cloud.google.com/compute/docs/machine-types#gpus) in
@@ -52,27 +57,30 @@ that makes the most sense for your location.
5257
> See See [Network Policies](../requirements.md#network-policies) for more
5358
> information.
5459
60+
The sample scripts below create an `e2-standard-4` instance with 2 nodes for
61+
evaluation purposes, with a configuration to auto-scale to 8 nodes as more
62+
developer workspace pods are created. Depending on your needs, you can choose
63+
other sizes. See [machine type
64+
comparisons](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison)
65+
in particular [general-purpose machine types like n1 and
66+
e2](https://cloud.google.com/compute/docs/general-purpose-machines). See
67+
[requirements](../requirements.md) for help estimating your cluster size.
68+
5569
### Option 1: Cluster with full support of Coder features
5670

5771
This option uses an Ubuntu node image to enable support of
5872
[Container-based Virtual Machines (CVMs)](../../admin/workspace-management/cvms.md),
5973
allowing system-level functionalities such as Docker in Docker.
6074

61-
> Please note that the sample script creates a `n1-highmem-4` instance;
62-
> depending on your needs, you can choose a
63-
> [larger size](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison)
64-
> instead. See [requirements](../requirements.md) for help estimating your
65-
> cluster size.
66-
6775
```console
6876
gcloud beta container --project "$PROJECT_ID" \
6977
clusters create "$NEW_CLUSTER_NAME" \
7078
--zone "$ZONE" \
7179
--no-enable-basic-auth \
7280
--node-version "latest" \
7381
--cluster-version "latest" \
74-
--machine-type "n1-highmem-4" \
75-
--image-type "UBUNTU" \
82+
--machine-type "e2-standard-4" \
83+
--image-type "ubuntu_containerd" \
7684
--disk-type "pd-standard" \
7785
--disk-size "50" \
7886
--metadata disable-legacy-endpoints=true \
@@ -99,20 +107,14 @@ This option uses a Container-Optimized OS (COS) and meets Coder's minimum
99107
requirements. It does _not_ enable the use of
100108
[CVMs](../../admin/workspace-management/cvms.md).
101109

102-
> Please note that the sample script creates a `n1-highmem-4` instance;
103-
> depending on your needs, you can choose a
104-
> [larger size](https://cloud.google.com/compute/docs/machine-types#machine_type_comparison)
105-
> instead. See [requirements](../requirements.md) for help estimating your
106-
> cluster size.
107-
108110
```console
109111
gcloud beta container --project "$PROJECT_ID" \
110112
clusters create "$NEW_CLUSTER_NAME" \
111113
--zone "$ZONE" \
112114
--no-enable-basic-auth \
113115
--cluster-version "latest" \
114-
--machine-type "n1-highmem-4" \
115-
--image-type "COS" \
116+
--machine-type "e2-standard-4" \
117+
--image-type "cos_containerd" \
116118
--disk-type "pd-standard" \
117119
--disk-size "50" \
118120
--metadata disable-legacy-endpoints=true \

0 commit comments

Comments
 (0)