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.
gcloud container clusters create [CLUSTER_NAME] --zone [COMPUTE_ZONE] \ --enable-autorepair
gcloud container node-pools create [POOL_NAME] --cluster [CLUSTER_NAME] \ --zone [COMPUTE_ZONE] --enable-autorepair
gcloud container node-pools update [POOL_NAME] --cluster [CLUSTER_NAME] \ --zone [COMPUTE_ZONE] --enable-autorepair