Support for Node Repair Config in EKS Managed Nodegroups¶
EKS Managed Nodegroups now supports Node Repair, where the health of managed nodes are monitored, and unhealthy worker nodes are replaced or rebooted in response.
Creating a cluster a managed nodegroup with node repair enabled¶
To create a cluster with a managed nodegroup using node repair, pass the --enable-node-repair
flag:
$ eksctl create cluster --enable-node-repair
To create a managed nodegroup using node repair on an existing cluster:
$ eksctl create nodegroup --cluster=<clusterName> --enable-node-repair
To create a cluster with a managed nodegroup using node repair via a config file:
# node-repair-nodegroup-cluster.yaml
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: cluster-44
region: us-west-2
managedNodeGroups:
- name: ng-1
nodeRepairConfig:
enabled: true
$ eksctl create cluster -f node-repair-nodegroup-cluster.yaml