Skip to content

Commit d1059f7

Browse files
committed
Docu for GKE cgroupv2 upgrade
1 parent c9db0fc commit d1059f7

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

docs/concourse/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,24 @@ kubectl config current-context
257257
## DR scenario
258258
Please see [DR scenario](disaster_recovery.md) for a fully automated recovery procedure.
259259

260-
261260
## Automated secrets rotation for CloudSQL
262261
Please see [Secrets Rotation](secrets_rotation.md)
263262

264263
## Automated regeneration for certificates stored in CredHub
265-
Please see [Certificate Regeneration](certificate_regeneration.md)
264+
Please see [Certificate Regeneration](certificate_regeneration.md)
265+
266+
## GKE node migration to Linux cgroupv2
267+
268+
Starting with version 1.33, the Google Kubernetes Engine (GKE) migrates clusters from Linux cgroupv1 to cgroupv2. The migration can be done manually in advance. The general migration procedure is explained on [Migrate nodes to Linux cgroupv2](https://cloud.google.com/kubernetes-engine/docs/how-to/migrate-cgroupv2#autopilot). Note however that we do not use an "Autopilot" GKE cluster, but a "Standard" cluster. The migration for a "Standard" cluster is not fully explained in the Google documentation, so we are documenting it here.
269+
270+
1. Log on to the GKE cluster as explained in [How to obtain GKE credentials for your terminal](<#how-to-obtain-gke-credentials-for-your-terminal>).
271+
2. Create a system configuration file `cgroupv2.yaml`:
272+
```yaml
273+
linuxConfig:
274+
cgroupMode: 'CGROUP_MODE_V2'
275+
```
276+
3. Apply the configuration to the two node pools:
277+
```shell
278+
gcloud container node-pools update default-pool --system-config-from-file=./cgroupv2.yaml --region europe-west3-a --cluster wg-ci
279+
gcloud container node-pools update concourse-workers --system-config-from-file=./cgroupv2.yaml --region europe-west3-a --cluster wg-ci
280+
```

0 commit comments

Comments
 (0)