Configuring GKE cluster nodes with auto-repair functionality.

0 votes

I want the nodes within my cluster to be able to auto-repair when health status is "not ready". How do I enable this feature?

Oct 17 in GCP by anonymous
• 5,700 points
49 views

1 answer to this question.

0 votes

To create a cluster or node pool with node auto-repair enabled, specify the --enable-autorepair option when you create your cluster or node pool using the gcloud command-line tool.

  • To create a cluster with auto-repair enabled, run the following command:

gcloud container clusters create [CLUSTER_NAME] --zone [COMPUTE_ZONE] \ --enable-autorepair
  • To create a node pool with auto-repair enabled:

gcloud container node-pools create [POOL_NAME] --cluster [CLUSTER_NAME] \ --zone [COMPUTE_ZONE] --enable-autorepair
  • To enable auto-repair for an existing node pool:

gcloud container node-pools update [POOL_NAME] --cluster [CLUSTER_NAME] \ --zone [COMPUTE_ZONE] --enable-autorepair
answered Oct 17 by Sirajul
• 37,930 points

Related Questions In GCP

0 votes
1 answer

Creating an alpha cluster using GKE on Google Cloud Platform.

The term Alpha cluster means that alpha APIs are ...READ MORE

answered Sep 27 in GCP by Sirajul
• 37,930 points
46 views
0 votes
1 answer

Can I create a load balancer with path based routing in GKE?

Yes, it's possible. Note that you simply will use the internal Load balancing (ILB) for ...READ MORE

answered Oct 10 in GCP by Sirajul
• 37,930 points
31 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to use this persistent volume claim with my GKE cluster?

After the PersistentVolume and PersistentVolumeClaim exist in ...READ MORE

answered 6 days ago in GCP by Sirajul
• 37,930 points
10 views