mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-25 06:24:14 +00:00
Automatic merge from submit-queue (batch tested with PRs 55103, 56036, 56186). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add cleanup-ipvs flag for kube-proxy **What this PR does / why we need it**: There is no way to tell if a given ipvs rule is created by ipvs proxier or not, and some people have complained that iptables/userspace proxier will clean up their ipvs rules when start up - both iptables and userspace proxiers need to clean up legacy proxy rules created by ipvs proxier. This PR adds a new `--cleanup-ipvs` flag for kube-proxy for the sake of providing users a way to decide if clean up IPVS rules or not when start iptables or userspace proxier. **Which issue(s) this PR fixes**: Fixes #55857 **Special notes for your reviewer**: **Release note**: ```release-note Add cleanup-ipvs flag for kube-proxy ``` /sig network /area ipvs /king bug