Skip to content

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

@mpitt

Description

@mpitt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions