Skip to content

Commit 6443d64

Browse files
authored
fix: Remove Cilium chainingMode when kubeproxyreplacement is enabled (#1340)
**What problem does this PR solve?**: AL2023 does not have portmap binary installed. This breaks chaining mode of the cilium and cilium is not able to create pod networking. The chaining mode is no longer required after cilium 1.8 and when kubeproxy replacement is enabled. References: https://docs.cilium.io/en/latest/installation/cni-chaining-portmap/ https://docs.cilium.io/en/latest/network/kubernetes/kubeproxy-free/#kubeproxyfree-hostport **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> Tested by creating EKS cluster. The clilium DS pods were failing with ``` failed to assert if endpoint BPF programs need to be reloaded: retrieving device lxc4bfccc8739f5: Link not found ``` Other errors in the kubelet ``` Warning FailedCreatePodSandBox 2d4h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "b5a9 │ │ 0c710b2844894e9822124cdb6c6ac2f4175d7b00dd0b7a9f3d787674f69c": plugin type="portmap" failed (add): failed to find plugin "portmap" in path [/opt/cni/bin] │ │ Warning FailedCreatePodSandBox 2d4h kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "14c8 │ │ f11b00cd49e7725737b9febacbf6b0aa7150ec927d56b1c4a07168172260": plugin type="cilium-cni" failed (add): unable to allocate IP via local cilium agent: [POST /ipam][502] postIpamFailure │ │ "No more IPs available" ``` After removing `chainingMode: portmap` the cilium was able to create pod networking. **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
1 parent f9e3423 commit 6443d64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/cluster-api-runtime-extensions-nutanix/addons/cni/cilium/values-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
cni:
2+
{{- if not .EnableKubeProxyReplacement }}
23
chainingMode: portmap
4+
{{- end }}
35
exclusive: false
46
hubble:
57
enabled: true

0 commit comments

Comments
 (0)