Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EKS - Node labels [closed]

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.

like image 582
f-z-N Avatar asked Jul 19 '18 22:07

f-z-N


People also ask

How do you resolve Ec2LaunchTemplateVersionMismatch?

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.

How do I check my EKS nodes?

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.

How do you stop EKS nodes?

Edit the autoscaling group and set the instances to 0. This will shut down all worker nodes.

Can we change EKS cluster name?

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 .


1 Answers

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

like image 152
Luis Govea Avatar answered Oct 12 '22 11:10

Luis Govea