Merge pull request #5892 from brendandburns/aws

Configure docker and kubelet on AWS master.
This commit is contained in:
Victor Marmol 2015-03-24 18:00:58 -07:00
commit 3ccd798d8d
5 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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.

View File

@ -23,6 +23,7 @@ grains:
roles:
- kubernetes-master
cloud: aws
cbr-cidr: "${MASTER_IP_RANGE}"
EOF
cat <<EOF > /etc/aws.conf

View File

@ -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"

View File

@ -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