Merge pull request #18490 from ZJU-SEL/configurable-kubelet-config

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-12-15 22:20:27 -08:00
commit c6299c48db
2 changed files with 9 additions and 3 deletions

View File

@ -37,6 +37,10 @@ export FLANNEL_NET=${FLANNEL_NET:-172.16.0.0/16}
# Admission Controllers to invoke prior to persisting objects in cluster
export ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota,SecurityContextDeny
# Path to the config file or directory of files of kubelet
export KUBELET_CONFIG=${KUBELET_CONFIG:-""}
# A port range to reserve for services with NodePort visibility
SERVICE_NODE_PORT_RANGE=${SERVICE_NODE_PORT_RANGE:-"30000-32767"}
# Optional: Enable node logging.

View File

@ -236,9 +236,9 @@ KUBELET_OPTS="\
--hostname-override=${1} \
--api-servers=http://${2}:8080 \
--logtostderr=true \
--config=/etc/kubernetes/manifests \
--cluster-dns=${3} \
--cluster-domain=${4}"
--config=${5}"
EOF
}
@ -446,7 +446,8 @@ function provision-node() {
'${1#*@}' \
'${MASTER_IP}' \
'${DNS_SERVER_IP}' \
'${DNS_DOMAIN}'
'${DNS_DOMAIN}' \
'${KUBELET_CONFIG}'
create-kube-proxy-opts \
'${1#*@}' \
'${MASTER_IP}'
@ -521,7 +522,8 @@ function provision-masterandnode() {
'${MASTER_IP}' \
'${MASTER_IP}' \
'${DNS_SERVER_IP}' \
'${DNS_DOMAIN}'
'${DNS_DOMAIN}' \
'${KUBELET_CONFIG}'
create-kube-proxy-opts \
'${MASTER_IP}' \
'${MASTER_IP}'