Merge "Take kubeproxy_options into account on proxy setup"

This commit is contained in:
Zuul 2019-09-03 09:37:00 +00:00 committed by Gerrit Code Review
commit c85a10e4e1
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -202,6 +202,7 @@ 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