mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #21170 from MikeSpreitzer/issue/21168
Auto commit by PR queue bot
This commit is contained in:
commit
44a8ca9fa7
@ -67,6 +67,10 @@ ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-true}"
|
||||
# --insecure-registry for local registries.
|
||||
DOCKER_OPTS=${DOCKER_OPTS:-""}
|
||||
|
||||
# Extra options to set on the kube-proxy command line. This is useful
|
||||
# for selecting the iptables proxy-mode, for example.
|
||||
KUBE_PROXY_EXTRA_OPTS=${KUBE_PROXY_EXTRA_OPTS:-""}
|
||||
|
||||
# Optional: Install cluster DNS.
|
||||
ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
|
||||
# DNS_SERVER_IP must be a IP in SERVICE_CLUSTER_IP_RANGE
|
||||
|
@ -248,7 +248,8 @@ function create-kube-proxy-opts() {
|
||||
KUBE_PROXY_OPTS="\
|
||||
--hostname-override=${1} \
|
||||
--master=http://${2}:8080 \
|
||||
--logtostderr=true"
|
||||
--logtostderr=true \
|
||||
${3}"
|
||||
EOF
|
||||
|
||||
}
|
||||
@ -450,7 +451,8 @@ function provision-node() {
|
||||
'${KUBELET_CONFIG}'
|
||||
create-kube-proxy-opts \
|
||||
'${1#*@}' \
|
||||
'${MASTER_IP}'
|
||||
'${MASTER_IP}' \
|
||||
'${KUBE_PROXY_EXTRA_OPTS}'
|
||||
create-flanneld-opts '${MASTER_IP}' '${1#*@}'
|
||||
|
||||
sudo -E -p '[sudo] password to start node: ' -- /bin/bash -ce '
|
||||
@ -526,7 +528,8 @@ function provision-masterandnode() {
|
||||
'${KUBELET_CONFIG}'
|
||||
create-kube-proxy-opts \
|
||||
'${MASTER_IP}' \
|
||||
'${MASTER_IP}'
|
||||
'${MASTER_IP}' \
|
||||
'${KUBE_PROXY_EXTRA_OPTS}'
|
||||
create-flanneld-opts '127.0.0.1' '${MASTER_IP}'
|
||||
|
||||
FLANNEL_OTHER_NET_CONFIG='${FLANNEL_OTHER_NET_CONFIG}' sudo -E -p '[sudo] password to start master: ' -- /bin/bash -ce '
|
||||
|
Loading…
Reference in New Issue
Block a user