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

Problems with INTERNAL-IP assignment in Kubernetes 1.29+ #247

Open
diasbro opened this issue Aug 7, 2024 · 3 comments
Open

Problems with INTERNAL-IP assignment in Kubernetes 1.29+ #247

diasbro opened this issue Aug 7, 2024 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@diasbro
Copy link

diasbro commented Aug 7, 2024

What happened:
We are experiencing issues deploying Kubernetes clusters version 1.29 and above on Huawei Cloud. Without passing the --node-ip flag to the kubelet service, INTERNAL-IP addresses for nodes are shown as <none>:

root@k8s-master-001:# kubectl get nodes -o wide
NAME             STATUS     ROLES    AGE   VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION       CONTAINER-RUNTIME
k8s-master-001   NotReady   <none>   25s   v1.29.7   <none>        <none>        Ubuntu 22.04.4 LTS   5.15.0-117-generic   containerd://1.7.20

We believe this is due to these changes in the Kubernetes 1.29: kubernetes/kubernetes#121028
Specifically, if the kubelet is started with the --cloud-provider=external flag and --node-ip is not specified, the external cloud-controller-manager should pass the IP address.
To solve issue-related problems, a deployment strategy was suggested in a PR's comment, where the external cloud-controller-manager is deployed as a static pod or the --node-ip flag is used: kubernetes/kubernetes#121028 (comment)

We tried the following steps: initialized the cluster using kubeadm, passed --cloud-provider=external (for all controlplane components) and --node-ip=<node_address> to kubelet on master nodes, deployed cni (the ccm falls down trying to get extension-apiserver-authentication configmap otherwise) and huaweicloud-controller-manager version v0.26.8 according to the documentation. The logs show:

I0807 07:22:11.239701       1 leaderelection.go:253] failed to acquire lease kube-system/cloud-controller-manager
I0807 07:22:15.289291       1 request.go:1370] body was not decodable (unable to check for Status): provided data does not appear to be a protobuf message, expected prefix [107 56 115 0]
E0807 07:22:15.289309       1 leaderelection.go:330] error retrieving resource lock kube-system/cloud-controller-manager: the server rejected our request for an unknown reason (get leases.coordination.k8s.io cloud-controller-manager)

Question: Is huaweicloud-controller-manager version v0.26.8 incompatible with Kubernetes versions 1.29 and above, or are we missing something in our setup?

What you expected to happen:
The huaweicloud-controller-manager returns no errors and internal IPs become visible on worker nodes.

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

  1. Initialize a Kubernetes cluster version 1.29+ using kubeadm (we have tried versions 1.30.3 and 1.29.7)
  2. Deploy cni (we used cilium 1.16)
  3. Deploy huaweicloud-controller-manager version v0.26.8

Anything else we need to know?:
Same setup works fine with kubernetes versions <1.29 (there are no problems with node IPs and huaweicloud-controller-manager as well)

Environment:

  • Kubernetes version (use kubectl version): 1.29.7
  • Cloud provider or hardware configuration: HuaweiCloud
  • OS (e.g: cat /etc/os-release): Ubuntu 22.04.4 LTS
  • Kernel (e.g. uname -a): 5.15.0-117-generic
  • Install tools: Kubeadm
  • Network plugin and version (if this is a network-related bug): cilium 1.16.0
  • Others:
@diasbro diasbro added the kind/bug Categorizes issue or PR as related to a bug. label Aug 7, 2024
@chengxiangdong
Copy link
Member

The current architecture that CCM relies on is not compatible with the 1.29 cluster. It needs to be upgraded to be compatible with version 1.29 and above.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 10, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants