Skip to content

CCM and Kubelet both write addresses on node object #47155

@wlan0

Description

@wlan0

When running a kubernetes cluster with Cloud Controller Manager, the node object does not get any addresses other than the internal IP address and Hostname.

After debugging @ublubu and I found that both CCM and kubelet race to set the node address. The kubelet is supposed to back off from setting node address when the cloudprovider is set to external.

This is where kubelet sets node address -

(Kubelet is not supposed to set it, a condition for this check needs to be added)

This is where CCM sets node address -

_, err = nodeutil.PatchNodeStatus(cnc.kubeClient, types.NodeName(node.Name), node, newNode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions