Enabling Nodes to Join Your Cluster
To enable nodes to join your cluster, complete the following steps:
About this task
Note: If you do not complete the following steps, Windows
nodes will not join the cluster.
Procedure
-
Download, edit, and apply the AWS IAM Authenticator configuration map. Download
the following configuration map:
curl -o aws-auth-cm-windows.yaml https://s3.us-west-2.amazonaws.com/amazon-eks/cloudformation/2020-10-29/aws-auth-cm-windows.yaml
- Open the file using your preferred text editor.
-
Replace the ARN of instance role (not instance profile) of **Linux** node and
ARN of instance role (not instance profile) of **Windows** node snippets with
the
NodeInstanceRole
values that you recorded for your Linux and Windows nodes. - Save the file.
Example
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: arn:aws:iam::385481138434:role/HCLSW_AWS_EKS_NODEGROUP_ROLE
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
- rolearn: arn:aws:iam::385481138434:role/discover-windows-cluster3-stack-NodeInstanceRole-1KX4EE72IARRB
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
- eks:kube-proxy-windows