GCI: support CIDR allocator for NodeController

pull/6/head
Andy Zheng 2016-05-20 21:25:08 -07:00
parent 914c1d61e9
commit bd293e1522
1 changed files with 3 additions and 0 deletions

View File

@ -509,6 +509,9 @@ function start-kube-controller-manager {
if [[ -n "${CLUSTER_IP_RANGE:-}" ]]; then
params+=" --cluster-cidr=${CLUSTER_IP_RANGE}"
fi
if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then
params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
fi
if [[ "${ALLOCATE_NODE_CIDRS:-}" == "true" ]]; then
params+=" --allocate-node-cidrs=${ALLOCATE_NODE_CIDRS}"
fi