Skip to content

Kubelet fails to bootstrap when --hostname-override is set. #62600

@seanknox

Description

@seanknox

Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT

/kind bug

What happened: Kubelet fails to bootstrap when --hostname-override is set.

Apr 15 18:53:24 node1 kubelet[5358]: I0415 18:53:24.435172    5358 reconciler.go:154] Reconciler: start to sync state
Apr 15 18:53:31 node1 kubelet[5358]: E0415 18:53:31.995375    5358 kubelet_node_status.go:374] Error updating node status, will retry: error getting node "node1.bootstrapo2.acs": nodes "node1.bootstrapo2.acs" not found
Apr 15 18:53:32 node1 kubelet[5358]: E0415 18:53:32.000597    5358 kubelet_node_status.go:374] Error updating node status, will retry: error getting node "node1.bootstrapo2.acs": nodes "node1.bootstrapo2.acs" not found
Apr 15 18:53:32 node1 kubelet[5358]: E0415 18:53:32.004915    5358 kubelet_node_status.go:374] Error updating node status, will retry: error getting node "node1.bootstrapo2.acs": nodes "node1.bootstrapo2.acs" not found
Apr 15 18:53:32 node1 kubelet[5358]: E0415 18:53:32.010134    5358 kubelet_node_status.go:374] Error updating node status, will retry: error getting node "node1.bootstrapo2.acs": nodes "node1.bootstrapo2.acs" not found
Apr 15 18:53:32 node1 kubelet[5358]: E0415 18:53:32.015376    5358 kubelet_node_status.go:374] Error updating node status, will retry: error getting node "node1.bootstrapo2.acs": nodes "node1.bootstrapo2.acs" not found
Apr 15 18:53:32 node1 kubelet[5358]: E0415 18:53:32.015403    5358 kubelet_node_status.go:366] Unable to update node status: update node status exceeds retry count
Apr 15 18:53:33 node1 kubelet[5358]: E0415 18:53:33.553842    5358 eviction_manager.go:246] eviction manager: failed to get get summary stats: failed to get node info: node "node1.bootstrapo2.acs" not found

What you expected to happen: I'm using bootstrap tokens to join nodes to a cluster. I expected the nodes to generate CSRs using the hostname specified in --hostname-override.

How to reproduce it (as minimally and precisely as possible):

Set --bootstrap-kubeconfig and --hostname-override on a Kubelet


**Anything else we need to know?**:

**Environment**: Linux
- Kubernetes version (use `kubectl version`): v1.10.1
- Cloud provider or hardware configuration: Azure
- OS (e.g. from /etc/os-release): Ubuntu 17.10
- Kernel (e.g. `uname -a`): `Linux k8scontroller2 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux`
- Install tools: Manual (with Terraform)
- Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.sig/authCategorizes an issue or PR as relevant to SIG Auth.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions