Skip to content

Commit

Permalink
Add 'portal_net' parameter to pillar
Browse files Browse the repository at this point in the history
In preparation for kubernetes#1402.
  • Loading branch information
Pieter Noordhuis committed Oct 29, 2014
1 parent 4a13d75 commit fa24fac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster/vsphere/config-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
MINION_MEMORY_MB=2048
MINION_CPU=1

PORTAL_NET="10.244.240.0/20"
2 changes: 2 additions & 0 deletions cluster/vsphere/config-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ MINION_NAMES=($(eval echo ${INSTANCE_PREFIX}-minion-{1..${NUM_MINIONS}}))
MINION_IP_RANGES=($(eval echo "10.244.{1..${NUM_MINIONS}}.0/24"))
MINION_MEMORY_MB=1024
MINION_CPU=1

PORTAL_NET="10.244.240.0/20"
1 change: 1 addition & 0 deletions cluster/vsphere/templates/salt-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ EOF

cat <<EOF >/srv/pillar/cluster-params.sls
node_instance_prefix: $NODE_INSTANCE_PREFIX
portal_net: $PORTAL_NET
EOF

# Auto accept all keys from minions that try to join
Expand Down
1 change: 1 addition & 0 deletions cluster/vsphere/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function kube-up {
echo "cd /home/kube/cache/kubernetes-install"
echo "readonly MASTER_NAME='${MASTER_NAME}'"
echo "readonly NODE_INSTANCE_PREFIX='${INSTANCE_PREFIX}-minion'"
echo "readonly PORTAL_NET='${PORTAL_NET}'"
echo "readonly SERVER_BINARY_TAR='${SERVER_BINARY_TAR##*/}'"
echo "readonly SALT_TAR='${SALT_TAR##*/}'"
echo "readonly MASTER_HTPASSWD='${htpasswd}'"
Expand Down

0 comments on commit fa24fac

Please sign in to comment.