From 181a724dc34c72f75c3bc1fffe02e6023d606c3b Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Fri, 30 Oct 2020 09:50:02 +0900 Subject: [PATCH] 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. --- hack/local-up-cluster.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index bb370c96c20..f1811251c22 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -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