Skip to content

Commit

Permalink
Rackspace support
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Oct 16, 2014
1 parent 1c2f04b commit 8f82d42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ write_files:
- kubernetes-master
cloud: rackspace
etcd_servers: KUBE_MASTER
portal_net: PORTAL_NET
path: /etc/salt/minion.d/grains.conf
- content: |
auto_accept: True
Expand Down
1 change: 1 addition & 0 deletions icebox/cluster/rackspace/config-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ RAX_NUM_MINIONS="${RAX_NUM_MINIONS-4}"
MINION_TAG="tag=${INSTANCE_PREFIX}-minion"
MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${RAX_NUM_MINIONS}}))
KUBE_NETWORK=($(eval echo "10.240.{1..${RAX_NUM_MINIONS}}.0/24"))
PORTAL_NET="10.0.0.0/16"
8 changes: 5 additions & 3 deletions icebox/cluster/rackspace/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ rax-boot-master() {
grep -v "^#" $(dirname $0)/templates/download-release.sh
) > ${KUBE_TEMP}/masterStart.sh

# Copy cloud-config to KUBE_TEMP and work some sed magic
sed -e "s/KUBE_MASTER/$MASTER_NAME/g" \
-e "s/MASTER_HTPASSWD/$HTPASSWD/" \
# Copy cloud-config to KUBE_TEMP and work some sed magic. Some vars can have
# '/' embedded, so don't use that for sed.
sed -e "s|KUBE_MASTER|$MASTER_NAME|g" \
-e "s|MASTER_HTPASSWD|$HTPASSWD|" \
-e "s|PORTAL_NET|$PORTAL_NET|" \
$(dirname $0)/cloud-config/master-cloud-config.yaml > $KUBE_TEMP/master-cloud-config.yaml


Expand Down

0 comments on commit 8f82d42

Please sign in to comment.