Make Node.yaml use KUBELET_PORT instead of hardcoded 10250

This commit is contained in:
gmarek 2015-10-14 15:56:19 +02:00
parent 6d6cd8e46a
commit 60404a55fc
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ source "${KUBE_ROOT}/cluster/gce/debian/helper.sh"
# $1: template name (required)
function create-node-instance-template {
local template_name="$1"
sed "s/##KUBELET_PORT##/${KUBELET_PORT}/g" ${KUBE_ROOT}/cluster/gce/trusty/node_template.yaml > ${KUBE_ROOT}/cluster/gce/trusty/node.yaml
create-node-template "$template_name" "${scope_flags[*]}" \
"kube-env=${KUBE_TEMP}/node-kube-env.yaml" \
"user-data=${KUBE_ROOT}/cluster/gce/trusty/node.yaml"
rm ${KUBE_ROOT}/cluster/gce/trusty/node.yaml
}

View File

@ -403,7 +403,7 @@ script
echo "Docker daemon failed!"
pkill docker
fi
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:10250/healthz > /dev/null; then
if ! curl --insecure -m ${max_seconds} -f -s https://127.0.0.1:##KUBELET_PORT##/healthz > /dev/null; then
echo "Kubelet is unhealthy!"
pkill kubelet
fi