Skip to content

[Backport 1.31] fix: flush the CNI-HOSTPORT-DNAT chain on stop (#4963) #4968

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

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

berkayoz
Copy link
Member

microk8s stop was changed to fully remove containers via ctr(#4755) which results in an old DNAT rule getting left-over that points to the old container id. flushing the chain should fix issues of hostPort connections dropping after a stop & start.

(cherry picked from commit b170cad)

`microk8s stop` was changed to fully remove containers via ctr(#4755)
which results in an old DNAT rule getting left-over that points
to the old container id. flushing the chain should fix issues of
hostPort connections dropping after a stop & start.

(cherry picked from commit b170cad)
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @berkayoz! LGTM

@berkayoz berkayoz merged commit 3030ce4 into 1.31 Mar 27, 2025
11 checks passed
@berkayoz berkayoz deleted the backport-4963-1.31 branch March 27, 2025 06:32
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.

2 participants