Skip to content

Conversation

@supershal
Copy link
Contributor

@supershal supershal commented Oct 6, 2025

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?:

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:

@github-actions github-actions bot added fix and removed fix labels Oct 6, 2025
@supershal supershal force-pushed the shalin/cilium-portmap branch from d43d00e to ef7c613 Compare October 6, 2025 05:36
@jimmidyson
Copy link
Member

@supershal Pre-commit fails with too long commit title 1: T1 Title exceeds max length (74>72): "fix: remove chaining mode from cilium when kubeproxyreplacement is enabled"

@jimmidyson jimmidyson changed the title fix: remove chaining mode from cilium when kubeproxyreplacement is enabled fix: Remove Cilium chainingMode when kubeproxyreplacement is enabled Oct 6, 2025
@github-actions github-actions bot added fix and removed fix labels Oct 6, 2025
@jimmidyson jimmidyson force-pushed the shalin/cilium-portmap branch from ef7c613 to bdd8055 Compare October 6, 2025 14:43
@jimmidyson
Copy link
Member

Reworded commit and pushed.

@jimmidyson jimmidyson enabled auto-merge (squash) October 6, 2025 14:43
@dkoshkin
Copy link
Contributor

dkoshkin commented Oct 6, 2025

Thanks for fixing this

@jimmidyson jimmidyson merged commit 6443d64 into main Oct 6, 2025
22 checks passed
@jimmidyson jimmidyson deleted the shalin/cilium-portmap branch October 6, 2025 15:30
@supershal
Copy link
Contributor Author

Thank you @jimmidyson

dlipovetsky added a commit that referenced this pull request Oct 7, 2025
🤖 I have created a release *beep* *boop*
---


## 0.35.1 (2025-10-07)

<!-- Release notes generated using configuration in .github/release.yaml
at main -->

## What's Changed
### Fixes 🔧
* fix: Remove Cilium chainingMode when kubeproxyreplacement is enabled
by @supershal in
#1340
* fix: Align validation with upstream Kubeadm Bootstrap Provider types
by @dlipovetsky in
#1342
### Other Changes
* refactor: move handler directories by @dkoshkin in
#1321


**Full Changelog**:
v0.35.0...v0.35.1

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
vijayaraghavanr31 pushed a commit that referenced this pull request Oct 8, 2025
…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.
-->
vijayaraghavanr31 pushed a commit that referenced this pull request Oct 8, 2025
🤖 I have created a release *beep* *boop*
---


## 0.35.1 (2025-10-07)

<!-- Release notes generated using configuration in .github/release.yaml
at main -->

## What's Changed
### Fixes 🔧
* fix: Remove Cilium chainingMode when kubeproxyreplacement is enabled
by @supershal in
#1340
* fix: Align validation with upstream Kubeadm Bootstrap Provider types
by @dlipovetsky in
#1342
### Other Changes
* refactor: move handler directories by @dkoshkin in
#1321


**Full Changelog**:
v0.35.0...v0.35.1

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants