How to set a Kubernetes Node's name in EKS

11/25/2019

I'm not having any luck in changing the name of a worker node in AWS EKS. I have not been able to find any documentation regarding how the node is named by default.

Currently my nodes are named as follows, for example

NAME                                           STATUS   ROLES            AGE     VERSION
ip-10-241-111-216.us-west-2.compute.internal   Ready                     44m     v1.14.7-eks-1861c5

I've tried passing in --hostname-override through the user data but it didn't seem to have any effect.

-- grbonk
aws-eks
kubernetes

1 Answer

11/25/2019

This is a known limitation in AWS EKS and its discussed this GitHub issue and it's still open.

Few other cloud providers respect the --hostname-override flag with some conditions. Those can be found in official Kubernetes documentation.

-- Ansil
Source: StackOverflow