I have a Kubernetes cluster in AWS running on CoreOS. We have DHCP options set on our VPC which changes the domain to
xyz.abc.com. The issue is when aws cloud provider tries to lookup the instance, it tries to lookup by matching ec2's private-dns-name property with the hostname. The private-dns-name uses
region.compute.internal domain and my node domain is
xyz.abc.com, so the lookup always fails. I'm trying to get past this problem by setting my hostname to match the aws private-dns-name. Before i start kubelet, I change the hostname to have the correct domain (
region.compute.internal). However, kubelet always ends up using
xyz.abc.com. I have no idea where kubelet is getting this domain. I check /etc/hostname and /etc/resolv.conf and both places the domain name is
region.compute.internal. Can someone please help we set the correct nodeName so I can get aws cloud provider to work.