mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #54738 from m1093782566/ipvs-local-up
Automatic merge from submit-queue. 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>. Clean up ipvs proxy startup in local-up.sh **What this PR does / why we need it**: Clean up ipvs proxy startup in local-up.sh **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /sig network
This commit is contained in:
commit
efe3f13f3d
@ -743,16 +743,11 @@ clientConnection:
|
||||
kubeconfig: ${CERT_DIR}/kube-proxy.kubeconfig
|
||||
hostnameOverride: ${HOSTNAME_OVERRIDE}
|
||||
featureGates: ${FEATURE_GATES}
|
||||
mode: ${KUBEPROXY_MODE}
|
||||
EOF
|
||||
if [ "${KUBEPROXY_MODE}" == "ipvs" ]; then
|
||||
cat <<EOF >> /tmp/kube-proxy.yaml
|
||||
mode: ipvs
|
||||
EOF
|
||||
sudo modprobe ip_vs
|
||||
sudo modprobe ip_vs_rr
|
||||
sudo modprobe ip_vs_wrr
|
||||
sudo modprobe ip_vs_sh
|
||||
sudo modprobe nf_conntrack_ipv4
|
||||
# Load kernel modules required by IPVS proxier
|
||||
sudo modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4
|
||||
fi
|
||||
|
||||
sudo "${GO_OUT}/hyperkube" proxy \
|
||||
|
Loading…
Reference in New Issue
Block a user