Skip to content

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

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

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

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 c7d337f into 1.30 Mar 27, 2025
@berkayoz
berkayoz deleted the backport-4963-1.30 branch March 27, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants