07a68dcd95
This change is collecting fixes and updates for k8s_opensuse_v1 drver * Fix indentation for bash scripts * Fix DOCKER_NETWORK_OPTIONS for configure-docker.sh * Add FLANNEL_BACKEND option * Update deprecated options for kubernetes services * Fix KUBE_NODE_IP option for kube-minions * Add kube_version and volume_driver options * Sync changes with opensuse Mitaka driver Change-Id: I33bf90331ff78ed538a55451f6de64c4a576cb2d Partial-Bug: #1622949 Partially-Implements: blueprint k8s-opensuse-support
22 lines
707 B
Bash
22 lines
707 B
Bash
#!/bin/sh
|
|
|
|
. /etc/sysconfig/heat-params
|
|
|
|
myip="$KUBE_NODE_IP"
|
|
|
|
sed -i '
|
|
/ETCD_NAME=/c ETCD_NAME="'$myip'"
|
|
/ETCD_DATA_DIR=/c ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
|
|
/ETCD_LISTEN_CLIENT_URLS=/c ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379"
|
|
/ETCD_LISTEN_PEER_URLS=/c ETCD_LISTEN_PEER_URLS="http://'$myip':2380"
|
|
/ETCD_ADVERTISE_CLIENT_URLS=/c ETCD_ADVERTISE_CLIENT_URLS="http://'$myip':2379"
|
|
/ETCD_INITIAL_ADVERTISE_PEER_URLS=/c ETCD_INITIAL_ADVERTISE_PEER_URLS="http://'$myip':2380"
|
|
/ETCD_DISCOVERY=/c ETCD_DISCOVERY="'$ETCD_DISCOVERY_URL'"
|
|
' /etc/sysconfig/etcd
|
|
|
|
echo "activating etcd service"
|
|
systemctl enable etcd
|
|
|
|
echo "starting etcd service"
|
|
systemctl --no-block start etcd
|