Provides correct master IP address for kube-proxy

Previously, KUBE_MASTER was not being set in a config file
read by the kube-proxy service. This change adds the KUBE_MASTER
configuration parameter to /etc/kubernetes/config.

Closes-Bug: #1485143

Change-Id: I51a3f12126acc9ba564a8ace6a73852945ed9d5b
changes/77/213377/2
Daneyon Hansen 7 years ago
parent 38f0a5dec5
commit 3db4cc83df
  1. 1
      magnum/templates/heat-kubernetes/fragments/configure-kubernetes-minion.sh

@ -13,6 +13,7 @@ ETCD_SERVER_IP=${ETCD_SERVER_IP:-$KUBE_MASTER_IP}
sed -i '
/^KUBE_ALLOW_PRIV=/ s/=.*/="--allow_privileged='"$KUBE_ALLOW_PRIV"'"/
/^KUBE_ETCD_SERVERS=/ s|=.*|="--etcd_servers=http://'"$ETCD_SERVER_IP"':2379"|
/^KUBE_MASTER=/ s|=.*|="--master=http://'"$KUBE_MASTER_IP"':8080"|
' /etc/kubernetes/config
sed -i '

Loading…
Cancel
Save