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:
Kubernetes Submit Queue 2017-10-28 17:31:41 -07:00 committed by GitHub
commit efe3f13f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \