You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this in the past when I was trying to conclude a standard for etcd names. What I found is that some instances where using what is the equivalent of $(hostname), while others were using a concat of $(hostname) master-1 and ($hostname -d) ip-10-0-132-53.ec2.internal
Within a cloud instance, various status APIs exists to easily obtain metadata for the compute.
I understand we can change our code to reflect master-1 as ETCD_NAME. But I feel standardizing node naming standard might be a good move across the product.
The text was updated successfully, but these errors were encountered:
I think we can move away from dns names entirely. By relying solely on internal IPs, we can have the operator avoid the dns dependency and conflicting values like this entirely.
research
I ran into this in the past when I was trying to conclude a standard for etcd names. What I found is that some instances where using what is the equivalent of$(hostname), while others were using a concat of $ (hostname)
master-1
and ($hostname -d)ip-10-0-132-53.ec2.internal
Within a cloud instance, various status APIs exists to easily obtain metadata for the compute.
Example AWS.
So it appears that the kubelet is smart enough in some clouds to get what CEO expects which is a routable internal DNS name for the node name.
https://github.com/kubernetes/kubernetes/blob/38acec9bbc955a33c3366dc6082df90d18229b6f/staging/src/k8s.io/legacy-cloud-providers/aws/aws.go#L902
https://github.com/kubernetes/kubernetes/blob/38acec9bbc955a33c3366dc6082df90d18229b6f/pkg/kubelet/kubelet.go#L457
But then for metal, we just see
master-1
, yet it does have a routable FQDN.proposed resolution
Non clouds use
--hostname-override
which is populated by ENV.I understand we can change our code to reflect
master-1
as ETCD_NAME. But I feel standardizing node naming standard might be a good move across the product.The text was updated successfully, but these errors were encountered: