Create new Managed Nodegroup
Looking at the clusterconfig.yaml, you can see the Nodegroup setup is using our existing cluster
Run the below command “eksctl create nodegroup” which will create new Nodegroup named
prodcatalog-demo-ng and will also create
the other resources like NodeInstanceRole, CloudWatchAgentServer Inline-Policy, AppMesh Inline-Policy, and XRay Inline-Policy.
envsubst < ./deployment/clusterconfig.yaml | eksctl create nodegroup -f -
The creation of the Nodegroup will take about 5 - 7 minutes.
Confirm Nodegroup setup
Confirm that the new nodes joined the cluster correctly. You should see last 3 nodes added to the cluster.
kubectl get nodes --sort-by=.metadata.creationTimestamp
Log into console and navigate to Amazon EKS -> Cluster -> Click
eksworkshop-eksctl -> Configuration -> Compute, you should see the new Nodegroup
prodcatalog-demo-ng you created:
Click on the Nodegroup
prodcatalog-demo-ng you will see the below information about NodeInstance Role.
Click on the NodeInstance Role and you will be navigated to IAM page where you will see the below polcies added to the Nodes in Nodegroup. These polcies are required for Nodegroup to access App Mesh, X-Ray, and Cloudwatch that were added as part of Nodegroup creation.