mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +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
|
kubeconfig: ${CERT_DIR}/kube-proxy.kubeconfig
|
||||||
hostnameOverride: ${HOSTNAME_OVERRIDE}
|
hostnameOverride: ${HOSTNAME_OVERRIDE}
|
||||||
featureGates: ${FEATURE_GATES}
|
featureGates: ${FEATURE_GATES}
|
||||||
|
mode: ${KUBEPROXY_MODE}
|
||||||
EOF
|
EOF
|
||||||
if [ "${KUBEPROXY_MODE}" == "ipvs" ]; then
|
if [ "${KUBEPROXY_MODE}" == "ipvs" ]; then
|
||||||
cat <<EOF >> /tmp/kube-proxy.yaml
|
# Load kernel modules required by IPVS proxier
|
||||||
mode: ipvs
|
sudo modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo "${GO_OUT}/hyperkube" proxy \
|
sudo "${GO_OUT}/hyperkube" proxy \
|
||||||
|
Loading…
Reference in New Issue
Block a user