Is there a way to add node labels when deploying worker nodes in EKS. I do not see an option in the CF template available for worker nodes.
EKS-CF-Workers
The only option I see right now is to use kubectl label command to add labels which is post cluster setup. However, the need to have complete automation which means applications are deployed automatically post cluster deployments and labels help in achieving the segregation.
If you haven't used a custom launch template and you get the Ec2LaunchTemplateVersionMismatch error, then your worker nodes aren't using the same version as the EKS node group. To resolve this issue, go to the Auto Scaling console to revert to the version that EKS created.
Select the Cluster group and then select the Nodes resource type. You see a list of all nodes in your cluster. The nodes can be any Amazon EKS node type. This is the same list that you see in the Nodes section when you select the Compute tab for your cluster.
Edit the autoscaling group and set the instances to 0. This will shut down all worker nodes.
No, you cannot change a name of running cluster, because it serves for discovery inside a cluster and this would require near-simultaneous changing it across the cluster. Sadly, you also cannot change a name of the cluster before init .
With the new EKS-optimized AMIs(amazon-eks-node-vXX) and Cloudformation template refactors provided by AWS it is now possible to add node labels as simple as providing arguments to the BootstrapArguments
parameter of the [amazon-eks-nodegroup.yaml][1]
Cloudfomation template. For example --kubelet-extra-args --node-labels=my-key=my-value
. For more details check the AWS announcement: Improvements for Amazon EKS Worker Node Provisioning
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With