Skip to content

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

Merged
berkayoz merged 1 commit into
1.32from
backport-4963-1.32
Mar 27, 2025
Merged

[Backport 1.32] fix: flush the CNI-HOSTPORT-DNAT chain on stop (#4963)#4966
berkayoz merged 1 commit into
1.32from
backport-4963-1.32

Conversation

@berkayoz

Copy link
Copy Markdown
Contributor

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)

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Copy link
Copy Markdown
Contributor

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 b71716d into 1.32 Mar 27, 2025
@berkayoz
berkayoz deleted the backport-4963-1.32 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

3 participants