Merge pull request #96028 from masap/local_up_cluster2

local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy
This commit is contained in:
Kubernetes Prow Robot 2020-11-10 07:17:00 -08:00 committed by GitHub
commit 26f09b77a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,6 +872,10 @@ EOF
parse_feature_gates "${FEATURE_GATES}"
fi >>/tmp/kube-proxy.yaml
if [[ "${NET_PLUGIN}" == "kubenet" && -n ${CLUSTER_CIDR} ]]; then
echo "clusterCIDR: \"${CLUSTER_CIDR}\"" >> /tmp/kube-proxy.yaml
fi
if [[ "${REUSE_CERTS}" != true ]]; then
generate_kubeproxy_certs
fi