Skip to content

Commit

Permalink
Configure docker on the master like we do on workers.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Mar 12, 2015
1 parent 0aee25e commit 17ff8fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions cluster/gce/config-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ INSTANCE_PREFIX="${KUBE_GCE_INSTANCE_PREFIX:-kubernetes}"
MASTER_NAME="${INSTANCE_PREFIX}-master"
MASTER_TAG="${INSTANCE_PREFIX}-master"
MINION_TAG="${INSTANCE_PREFIX}-minion"
MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"

# Compute IP addresses for nodes.
function increment_ipv4 {
Expand Down
1 change: 1 addition & 0 deletions cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ function salt-master-role() {
grains:
roles:
- kubernetes-master
cbr-cidr: ${MASTER_IP_RANGE}
cloud: gce
EOF
}
Expand Down
2 changes: 2 additions & 0 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ DNS_SERVER_IP: $(yaml-quote ${DNS_SERVER_IP:-})
DNS_DOMAIN: $(yaml-quote ${DNS_DOMAIN:-})
MASTER_HTPASSWD: $(yaml-quote ${MASTER_HTPASSWD})
ADMISSION_CONTROL: $(yaml-quote ${ADMISSION_CONTROL:-})
MASTER_IP_RANGE: $(yaml-quote ${MASTER_IP_RANGE})
EOF

if [[ "${master}" != "true" ]]; then
Expand Down Expand Up @@ -612,6 +613,7 @@ function kube-up {
fi

done
create-route "${MASTER_NAME}" "${MASTER_IP_RANGE}"

# Wait for last batch of jobs.
wait-for-jobs
Expand Down
4 changes: 4 additions & 0 deletions cluster/saltbase/salt/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ base:
- docker
- sdn
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
- docker
{% endif %}


'roles:kubernetes-pool-vsphere':
- match: grain
Expand Down

0 comments on commit 17ff8fb

Please sign in to comment.