mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Create heapster node first
This commit is contained in:
parent
332da0a943
commit
226aa7306c
@ -2317,6 +2317,8 @@ function create-nodes() {
|
|||||||
if [[ -z "${HEAPSTER_MACHINE_TYPE:-}" ]]; then
|
if [[ -z "${HEAPSTER_MACHINE_TYPE:-}" ]]; then
|
||||||
local -r nodes="${NUM_NODES}"
|
local -r nodes="${NUM_NODES}"
|
||||||
else
|
else
|
||||||
|
echo "Creating a special node for heapster with machine-type ${HEAPSTER_MACHINE_TYPE}"
|
||||||
|
create-heapster-node
|
||||||
local -r nodes=$(( NUM_NODES - 1 ))
|
local -r nodes=$(( NUM_NODES - 1 ))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2346,11 +2348,6 @@ function create-nodes() {
|
|||||||
--zone "${ZONE}" \
|
--zone "${ZONE}" \
|
||||||
--project "${PROJECT}" || true;
|
--project "${PROJECT}" || true;
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -n "${HEAPSTER_MACHINE_TYPE:-}" ]]; then
|
|
||||||
echo "Creating a special node for heapster with machine-type ${HEAPSTER_MACHINE_TYPE}"
|
|
||||||
create-heapster-node
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Assumes:
|
# Assumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user