MEDIUM
Source
CloudSploit
ID
automatic-node-repair-enabled

Automatic Node Repair Enabled

Ensures all Kubernetes cluster nodes have automatic repair enabled

When automatic repair on nodes is enabled, the Kubernetes engine performs health checks on all nodes, automatically repairing nodes that fail health checks. This ensures that the Kubernetes environment stays optimal.

Follow the appropriate remediation steps below to resolve the issue.

  1. Log in to the Google Cloud Platform Console.

  2. Scroll down the left navigation panel and choose the “Kubernetes Engine” option under the “Compute” and select the “Clusters.” Step

  3. On the “Kubernetes clusters” page , click on the “Name” as a link option to select the cluster.Step

  4. On the selected “Clusters” page, scroll down and select the “Node pools” by clicking on the “Name” as a link.Step

  5. On the “Node pool details” page, scroll down the page, check “Auto-repair” option under the “Management” and if it’s showing “Disabled” then the Kubernetes engine cannot perform health checks on all nodes.Step

  6. Repeat steps number 2 - 5 to verify other clusters in the account.

  7. Navigate to the “Kubernetes Engine” option under the “Compute”, choose the “Clusters” and select the “Node pools” option.Step

  8. On the “Node pool details” page, click on the “Edit” button at the top.Step

  9. On the “Edit node pool” page, scroll down and click on the checkbox next to the “Enable auto-repair” under the “Management.”Step

  10. Click on the “Save” button to make the changes.Step

  11. Repeat steps number 7 - 10 to ensure that automatic node repair is enabled on all node pools in Kubernetes clusters.