mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Rackspace support
This commit is contained in:
parent
1c2f04b8b7
commit
8f82d42f79
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user