Add etcd 2.0 config file support

Update kubernetes version to 0.15.  Kubernetes 0.15 introduces
etcd 2.0 instead of 1.y series.  The 2.0 series has a separate
configuration file in /etc/etcd/etcd.conf.  This configuration
file specifies an IP address on which to listen for ETCD requests.

Co-Authored-By: Andrew Melton <andrew.melton@rackspace.com>

Change-Id: Ifd231dd2d78ab14d7af4d013840f25630b10d469
Partially-implements: blueprint python-k8sclient
This commit is contained in:
Steven Dake 2015-04-23 19:16:21 -07:00
parent fa6f47b4ec
commit fa638da46a
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
. /etc/sysconfig/heat-params
echo "configuring kubernetes (master)"
sed -i '
/^ETCD_LISTEN_CLIENT_URLS=/ s/=.*/="http:\/\/0.0.0.0:4001"/
' /etc/etcd/etcd.conf
sed -i '
/^KUBE_ALLOW_PRIV=/ s/=.*/="--allow_privileged='"$KUBE_ALLOW_PRIV"'"/