Welcome to the Linux Foundation Forum!

Network unavailable after worker joins control-plane

I am two running VMs on VirtualBox (network set as bridge-adapter) for the worker and control-plane nodes

I am having problems with the first lab in creating a cluster

After running the join command on the worker node I notice it joins the cluster but never becomes ready. The describe node command indicates the worker node has stopped publishing status.

At that point I noticed I could no longer ping from either node to the other. Any clues?

FYI:
worker-node IP: 10.0.0.55
cp-node IP: 10.0.0.139

  1. $sudo ip route
  2. default via 10.0.0.1 dev enp0s3 proto dhcp metric 100
  3. 10.0.0.0/24 via 10.0.0.171 dev cilium_host proto kernel src 10.0.0.171
  4. 10.0.0.0/24 dev enp0s3 proto kernel scope link src 10.0.0.139 metric 100
  5. 10.0.0.171 dev cilium_host proto kernel scope link
  6. 169.254.0.0/16 dev enp0s3 scope link metric 1000
  1. Name: kube4
  2. Roles: <none>
  3. Labels: beta.kubernetes.io/arch=amd64
  4. beta.kubernetes.io/os=linux
  5. kubernetes.io/arch=amd64
  6. kubernetes.io/hostname=kube4
  7. kubernetes.io/os=linux
  8. Annotations: kubeadm.alpha.kubernetes.io/cri-socket: unix:///var/run/containerd/containerd.sock
  9. node.alpha.kubernetes.io/ttl: 0
  10. volumes.kubernetes.io/controller-managed-attach-detach: true
  11. CreationTimestamp: Sat, 29 Jun 2024 16:03:16 +0930
  12. Taints: node.kubernetes.io/unreachable:NoExecute
  13. node.cilium.io/agent-not-ready:NoSchedule
  14. node.kubernetes.io/unreachable:NoSchedule
  15. Unschedulable: false
  16. Lease:
  17. HolderIdentity: kube4
  18. AcquireTime: <unset>
  19. RenewTime: Sat, 29 Jun 2024 16:03:46 +0930
  20. Conditions:
  21. Type Status LastHeartbeatTime LastTransitionTime Reason Message
  22. ---- ------ ----------------- ------------------ ------ -------
  23. MemoryPressure Unknown Sat, 29 Jun 2024 16:03:26 +0930 Sat, 29 Jun 2024 16:04:29 +0930 NodeStatusUnknown Kubelet stopped posting node status.
  24. DiskPressure Unknown Sat, 29 Jun 2024 16:03:26 +0930 Sat, 29 Jun 2024 16:04:29 +0930 NodeStatusUnknown Kubelet stopped posting node status.
  25. PIDPressure Unknown Sat, 29 Jun 2024 16:03:26 +0930 Sat, 29 Jun 2024 16:04:29 +0930 NodeStatusUnknown Kubelet stopped posting node status.
  26. Ready Unknown Sat, 29 Jun 2024 16:03:26 +0930 Sat, 29 Jun 2024 16:04:29 +0930 NodeStatusUnknown Kubelet stopped posting node status.
  27. Addresses:
  28. InternalIP: 10.0.0.55
  29. Hostname: kube4
  30. Capacity:
  31. cpu: 2
  32. ephemeral-storage: 19947120Ki
  33. hugepages-2Mi: 0
  34. memory: 4005976Ki
  35. pods: 110
  36. Allocatable:
  37. cpu: 2
  38. ephemeral-storage: 18383265762
  39. hugepages-2Mi: 0
  40. memory: 3903576Ki
  41. pods: 110
  42. System Info:
  43. Machine ID: 138ec1e0ef054b269929f06da17de685
  44. System UUID: 224bb1df-fdf8-064a-bdc1-d79a8e4d8d50
  45. Boot ID: 46eddc31-2179-4f0b-b882-38afe5c7425f
  46. Kernel Version: 5.15.0-113-generic
  47. OS Image: Ubuntu 20.04.6 LTS
  48. Operating System: linux
  49. Architecture: amd64
  50. Container Runtime Version: containerd://1.7.18
  51. Kubelet Version: v1.30.1
  52. Kube-Proxy Version: v1.30.1
  53. PodCIDR: 20.0.1.0/24
  54. PodCIDRs: 20.0.1.0/24
  55. Non-terminated Pods: (2 in total)
  56. Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits Age
  57. --------- ---- ------------ ---------- --------------- ------------- ---
  58. kube-system cilium-2psgw 100m (5%) 0 (0%) 10Mi (0%) 0 (0%) 62m
  59. kube-system kube-proxy-trgz7 0 (0%) 0 (0%) 0 (0%) 0 (0%) 62m
  60. Allocated resources:
  61. (Total limits may be over 100 percent, i.e., overcommitted.)
  62. Resource Requests Limits
  63. -------- -------- ------
  64. cpu 100m (5%) 0 (0%)
  65. memory 10Mi (0%) 0 (0%)
  66. ephemeral-storage 0 (0%) 0 (0%)
  67. hugepages-2Mi 0 (0%) 0 (0%)
  68. Events: <none>

Answers

  • Posts: 2

    Perhaps it has something to do with the Cilium PodCIDR conflicting with the host CIDR. If so how does one change the Cilium PodCIDR

  • Posts: 2,451

    Hi @harriotj,

    Please provide the outputs of the following commands:

    kubectl get nodes -o wide
    kubectl get pods -A -o wide

    Regards,
    -Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training