lacework-global-765
Enable Node Auto-Repair for Google Kubernetes Engine (GKE) nodes (Automated)
Description
Nodes in a degraded state are an unknown quantity and so may pose a security risk.
Remediation
Using Google Cloud Console:
- Go to Kubernetes Engine by visiting: https://console.cloud.google.com/kubernetes/list.
- Select the Kubernetes cluster containing the node pool with auto-repair disabled.
- Select the Node pool by clicking on the name of the pool.
- Navigate to the Node pool details pane and click
Edit
. - Under the Management heading, select the
Enable auto-repair
box. - Click
Save
. - Repeat steps 2-6 for every cluster and node pool with auto-upgrade disabled.
Using Command Line:
To enable node auto-repair for an existing cluster's Node pool:
gcloud container node-pools update <node_pool_name> --cluster <cluster_name> --zone <compute_zone> --enable-autorepair
References
https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair