mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Make heapster VM creation work with IP aliases
This commit is contained in:
parent
ffed1d3408
commit
009f62ebad
@ -1302,13 +1302,19 @@ function create-nodes() {
|
|||||||
# - IP_ALIAS_SUBNETWORK
|
# - IP_ALIAS_SUBNETWORK
|
||||||
# - IP_ALIAS_SIZE
|
# - IP_ALIAS_SIZE
|
||||||
function create-heapster-node() {
|
function create-heapster-node() {
|
||||||
|
local gcloud="gcloud"
|
||||||
|
|
||||||
|
if [[ "${ENABLE_IP_ALIASES:-}" == 'true' ]]; then
|
||||||
|
gcloud="gcloud beta"
|
||||||
|
fi
|
||||||
|
|
||||||
local network=$(make-gcloud-network-argument \
|
local network=$(make-gcloud-network-argument \
|
||||||
"${NETWORK}" "" \
|
"${NETWORK}" "" \
|
||||||
"${ENABLE_IP_ALIASES:-}" \
|
"${ENABLE_IP_ALIASES:-}" \
|
||||||
"${IP_ALIAS_SUBNETWORK:-}" \
|
"${IP_ALIAS_SUBNETWORK:-}" \
|
||||||
"${IP_ALIAS_SIZE:-}")
|
"${IP_ALIAS_SIZE:-}")
|
||||||
|
|
||||||
gcloud compute instances \
|
${gcloud} compute instances \
|
||||||
create "${NODE_INSTANCE_PREFIX}-heapster" \
|
create "${NODE_INSTANCE_PREFIX}-heapster" \
|
||||||
--project "${PROJECT}" \
|
--project "${PROJECT}" \
|
||||||
--zone "${ZONE}" \
|
--zone "${ZONE}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user