mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
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:
parent
3b51cd1b1e
commit
181a724dc3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user