From f225d4af4c7d04b87ec56f627d9492e99abd4804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Martins?= Date: Fri, 16 Sep 2016 23:41:41 +0100 Subject: [PATCH] local-up-cluster.sh: add SERVICE_CLUSTER_IP_RANGE as option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Martins --- hack/local-up-cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 3c965708602..a8354230d4f 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -27,6 +27,7 @@ RUNTIME_CONFIG=${RUNTIME_CONFIG:-""} NET_PLUGIN=${NET_PLUGIN:-""} NET_PLUGIN_DIR=${NET_PLUGIN_DIR:-""} KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. +SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:-"10.0.0.0/24"} # We disable cluster DNS by default because this script uses docker0 (or whatever # container bridge docker is currently using) and we don't know the IP of the # DNS pod to pass in as --cluster-dns. To set this up by hand, set this flag @@ -307,7 +308,7 @@ function start_apiserver { --insecure-bind-address="${API_HOST_IP}" \ --insecure-port="${API_PORT}" \ --etcd-servers="http://${ETCD_HOST}:${ETCD_PORT}" \ - --service-cluster-ip-range="10.0.0.0/24" \ + --service-cluster-ip-range="${SERVICE_CLUSTER_IP_RANGE}" \ --cloud-provider="${CLOUD_PROVIDER}" \ --cloud-config="${CLOUD_CONFIG}" \ --cors-allowed-origins="${API_CORS_ALLOWED_ORIGINS}" >"${APISERVER_LOG}" 2>&1 &