How do i enable worker nodes to join my eks cluster?



  • This is a follow up to How do i add worker nodes to an aws eks cluster? : https://www.lightnetics.com/post/10412

    Download the AWS authenticator configuration map.

    $ curl -O https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/aws-auth-cm.yaml
    

    Edit the file and change the ARN for the NodeInstanceRole, you recorded in the previous step, https://www.lightnetics.com/post/10412

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: aws-auth
      namespace: kube-system
    data:
      mapRoles: |
        - rolearn: <ARN of instance role (not instance profile)>
          username: system:node:{{EC2PrivateDNSName}}
          groups:
            - system:bootstrappers
            - system:nodes
    

    Apply the ConfigMap.

    $ kubectl apply -f aws-auth-cm.yaml
    configmap "aws-auth" created
    

    Check the nodes have joined and are ready.

    $ kubectl get nodes --watch
    NAME                                           STATUS    ROLES     AGE       VERSION
    ip-192-168-176-32.us-west-2.compute.internal   Ready     <none>    45s       v1.10.3
    ip-192-168-214-73.us-west-2.compute.internal   Ready     <none>    38s       v1.10.3
    ...
    ...
    ...
    

Log in to reply
 

© Lightnetics 2024