Browse Source

Take kubeproxy_options into account on proxy setup

The label kubeproxy_options was being ignored when setting up both
master and minions. Add it to the kube proxy args.

Change-Id: Ic830f19e1af062e90d066e6df4df2e4376e4f379
Story: 2006465
Task: 36394
changes/17/679017/1
Ricardo Rocha 3 years ago
parent
commit
00f518fc59
  1. 1
      magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-master.sh
  2. 3
      magnum/drivers/common/templates/kubernetes/fragments/configure-kubernetes-minion.sh

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

@ -62,6 +62,7 @@ CERT_DIR=/etc/kubernetes/certs
PROXY_KUBECONFIG=/etc/kubernetes/proxy-kubeconfig.yaml
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="--kubeconfig=${PROXY_KUBECONFIG} --cluster-cidr=${PODS_NETWORK_CIDR}"
KUBE_PROXY_ARGS="${KUBE_PROXY_ARGS} ${KUBEPROXY_OPTIONS}"
EOF
cat > ${PROXY_KUBECONFIG} << EOF

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

@ -202,8 +202,9 @@ sed -i '
cat > /etc/kubernetes/proxy << EOF
KUBE_PROXY_ARGS="--kubeconfig=${PROXY_KUBECONFIG} --cluster-cidr=${PODS_NETWORK_CIDR}"
KUBE_PROXY_ARGS="${KUBE_PROXY_ARGS} ${KUBEPROXY_OPTIONS}"
EOF
cat >> /etc/environment <<EOF
KUBERNETES_MASTER=$KUBE_MASTER_URI
EOF
EOF

Loading…
Cancel
Save