File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ NET_PLUGIN=${NET_PLUGIN:-""}
40
40
# eg: "/etc/cni/net.d" for config files, and "/opt/cni/bin" for binaries.
41
41
CNI_CONF_DIR=${CNI_CONF_DIR:- " " }
42
42
CNI_BIN_DIR=${CNI_BIN_DIR:- " " }
43
+ CLUSTER_CIDR=${CLUSTER_CIDR:- 10.1.0.0/ 16}
43
44
SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:- 10.0.0.0/ 24}
44
45
FIRST_SERVICE_CLUSTER_IP=${FIRST_SERVICE_CLUSTER_IP:- 10.0.0.1}
45
46
# if enabled, must set CGROUP_ROOT
614
615
function start_controller_manager {
615
616
node_cidr_args=()
616
617
if [[ " ${NET_PLUGIN} " == " kubenet" ]]; then
617
- node_cidr_args=(" --allocate-node-cidrs=true" " --cluster-cidr=10.1.0.0/16 " )
618
+ node_cidr_args=(" --allocate-node-cidrs=true" " --cluster-cidr=${CLUSTER_CIDR} " )
618
619
fi
619
620
620
621
cloud_config_arg=(" --cloud-provider=${CLOUD_PROVIDER} " " --cloud-config=${CLOUD_CONFIG} " )
@@ -658,7 +659,7 @@ function start_cloud_controller_manager {
658
659
659
660
node_cidr_args=()
660
661
if [[ " ${NET_PLUGIN} " == " kubenet" ]]; then
661
- node_cidr_args=(" --allocate-node-cidrs=true" " --cluster-cidr=10.1.0.0/16 " )
662
+ node_cidr_args=(" --allocate-node-cidrs=true" " --cluster-cidr=${CLUSTER_CIDR} " )
662
663
fi
663
664
664
665
CLOUD_CTLRMGR_LOG=${LOG_DIR} /cloud-controller-manager.log
You can’t perform that action at this time.
0 commit comments