local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy

This patch fixes the local-up-cluster.sh to pass CLUSTER_CIDR to kube-proxy.
Previously, CLUSTER_CIDR was passed only to controller manager and cloud
controller manager.
This commit is contained in:
Masashi Honma 2020-10-30 09:50:02 +09:00
parent 3b51cd1b1e
commit 181a724dc3

View File

@ -852,6 +852,10 @@ EOF
done
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