Configure minions properly

A previus commit introduced a regression which caused kubectl not
to configure properly.  This results in kube minions staying in the
NotReady state and this script not completing execution.

Change-Id: I336c21ac2660c4c19c401b8ecbd8015cc44dbfdd
Closes-Bug: #1453470
changes/96/181696/1
Steven Dake 7 years ago
parent 2704710e28
commit 8d7e4a4ab4
  1. 3
      magnum/templates/heat-kubernetes/fragments/configure-kubernetes-minion.sh

@ -16,7 +16,8 @@ sed -i '
sed -i '
/^KUBELET_ADDRESS=/ s/=.*/="--address=0.0.0.0"/
/^KUBELET_HOSTNAME=/ s/=.*/="--hostname_override='"$myip"'"/
/^KUBELET_API_SERVER=/ s/=.*/="--api_servers='http:\/\/"$KUBE_MASTER_IP"':8080"/
/^KUBELET_API_SERVER=/ s|=.*|="--api_servers=http://'"$KUBE_MASTER_IP"':8080"|
' /etc/kubernetes/kubelet
sed -i '

Loading…
Cancel
Save