Browse Source

Trivial fix for cluster creation in master

This is the fix for the "line 528: KUBE_PROXY_ARGS: unbound variable"
error in master.

Change-Id: Iaf5bbc8e4946c6625e82b6f68e754328f08b6ce7
Story: 2006492
Task: 36448
changes/87/679987/2
Theodoros Tsioutsias 3 years ago committed by Bharat Kunwar
parent
commit
7871859514
  1. 2
      magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-master.sh
  2. 2
      magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-minion.sh

2
magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-master.sh

@ -60,8 +60,8 @@ CERT_DIR=/etc/kubernetes/certs
# kube-proxy config
PROXY_KUBECONFIG=/etc/kubernetes/proxy-kubeconfig.yaml
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="--kubeconfig=${PROXY_KUBECONFIG} --cluster-cidr=${PODS_NETWORK_CIDR}"
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="${KUBE_PROXY_ARGS} ${KUBEPROXY_OPTIONS}"
EOF

2
magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-minion.sh

@ -200,8 +200,8 @@ sed -i '
/^KUBELET_ARGS=/ s|=.*|="'"\$(/etc/kubernetes/get_require_kubeconfig.sh) ${KUBELET_ARGS}"'"|
' /etc/kubernetes/kubelet
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="--kubeconfig=${PROXY_KUBECONFIG} --cluster-cidr=${PODS_NETWORK_CIDR}"
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="${KUBE_PROXY_ARGS} ${KUBEPROXY_OPTIONS}"
EOF

Loading…
Cancel
Save