diff --git a/cluster/aws/config-default.sh b/cluster/aws/config-default.sh index 0b9e27b5198..cace50a2915 100644 --- a/cluster/aws/config-default.sh +++ b/cluster/aws/config-default.sh @@ -42,6 +42,7 @@ MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24")) MINION_SCOPES="" POLL_SLEEP_INTERVAL=3 PORTAL_NET="10.0.0.0/16" +MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}" # When set to true, Docker Cache is enabled by default as part of the cluster bring up. diff --git a/cluster/aws/config-test.sh b/cluster/aws/config-test.sh index 20373df15df..9f63ce1dee9 100755 --- a/cluster/aws/config-test.sh +++ b/cluster/aws/config-test.sh @@ -38,6 +38,7 @@ MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24")) MINION_SCOPES="" POLL_SLEEP_INTERVAL=3 PORTAL_NET="10.0.0.0/16" +MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}" # When set to true, Docker Cache is enabled by default as part of the cluster bring up. diff --git a/cluster/aws/templates/salt-master.sh b/cluster/aws/templates/salt-master.sh index d88643ceb74..10326aa7f88 100755 --- a/cluster/aws/templates/salt-master.sh +++ b/cluster/aws/templates/salt-master.sh @@ -23,6 +23,7 @@ grains: roles: - kubernetes-master cloud: aws + cbr-cidr: "${MASTER_IP_RANGE}" EOF cat < /etc/aws.conf diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index a32cc21c182..0b726f55682 100644 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -419,7 +419,8 @@ function kube-up { echo "readonly DNS_REPLICAS='${DNS_REPLICAS:-}'" echo "readonly DNS_SERVER_IP='${DNS_SERVER_IP:-}'" echo "readonly DNS_DOMAIN='${DNS_DOMAIN:-}'" - echo "readonly ADMISSION_CONTROL='${ADMISSION_CONTROL:-}'" + echo "readonly ADMISSION_CONTROL='${ADMISSION_CONTROL:-}'" + echo "readonly MASTER_IP_RANGE='${MASTER_IP_RANGE:-}'" grep -v "^#" "${KUBE_ROOT}/cluster/aws/templates/common.sh" grep -v "^#" "${KUBE_ROOT}/cluster/aws/templates/format-disks.sh" grep -v "^#" "${KUBE_ROOT}/cluster/aws/templates/create-dynamic-salt-files.sh" diff --git a/cluster/saltbase/salt/top.sls b/cluster/saltbase/salt/top.sls index c1bdab6633e..bf12a42ef4b 100644 --- a/cluster/saltbase/salt/top.sls +++ b/cluster/saltbase/salt/top.sls @@ -46,6 +46,10 @@ base: - docker - sdn {% endif %} +{% if grains['cloud'] is defined and grains['cloud'] == 'aws' %} + - docker + - kubelet +{% endif %} {% if grains['cloud'] is defined and grains['cloud'] == 'gce' %} - docker - kubelet