Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node name is not always the same as kubernetes.io/hostname #428

Open
mpitt opened this issue Aug 23, 2021 · 2 comments
Open

Node name is not always the same as kubernetes.io/hostname #428

mpitt opened this issue Aug 23, 2021 · 2 comments

Comments

@mpitt
Copy link

mpitt commented Aug 23, 2021

Describe the bug
The havener-usage-retriever pods fail to be scheduled because the node selector assumes that the kubernetes.io/hostname label contains the node name, which is not always the case.

To Reproduce
Steps to reproduce the behavior:

  1. Run havener top
  2. Look at the events (e.g. havener events)
  3. There are events like this:
Warning kube-system/havener-usage-retriever-ip-111-222-333-444.xx.compute.internal  FailedScheduling  0/11 nodes are available: 11 node(s) didn't match Pod's node affinity.

Expected behavior
The pod should be correctly scheduled.

Additional context
In my case, the cluster is on EKS and it was created with eksctl.

The kubernetes.io/hostname label contains the hostname (ip-111-222-333-444) while the node name is the FQDN.

@edwardstudy
Copy link
Member

Could we set nodeName for this case?

@HeavyWombat
Copy link
Member

First of all, thanks for bringing it up. I have to take a look at the options, i.e. fields in the node resource YAML we can use to address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants