Skip to content

Publish ports on containerd - #332

Merged
Shine-neko merged 2 commits into
mainfrom
feat/containerd-ports
Nov 23, 2026
Merged

Shine-neko merged 2 commits into
mainfrom
feat/containerd-ports

Conversation

@Shine-neko

Copy link
Copy Markdown
Contributor

containerd has no port forwarding of its own, so ports was refused on it (#326). Ring now chains the CNI portmap plugin after bridge, with the bridge result as prevResult, and runs its DEL before the bridge's. The teardown only has the container, so an instance's mappings are recorded in a ring.ports container label.

portmap forwards with NAT rules, which take precedence over a process listening on the port, so a host port already in use is refused (Port N is already allocated), as on Docker. Without the plugin, a deployment publishing ports fails to start instead of running unreachable.

@Shine-neko
Shine-neko force-pushed the feat/containerd-ports branch from 8f1f335 to 987710e Compare November 23, 2026 13:08
@Shine-neko
Shine-neko force-pushed the feat/containerd-ports branch from 987710e to 4bade75 Compare November 23, 2026 13:36
@Shine-neko
Shine-neko merged commit 140c7f8 into main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant