mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +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_SIZE
|
||||
function create-heapster-node() {
|
||||
local gcloud="gcloud"
|
||||
|
||||
if [[ "${ENABLE_IP_ALIASES:-}" == 'true' ]]; then
|
||||
gcloud="gcloud beta"
|
||||
fi
|
||||
|
||||
local network=$(make-gcloud-network-argument \
|
||||
"${NETWORK}" "" \
|
||||
"${ENABLE_IP_ALIASES:-}" \
|
||||
"${IP_ALIAS_SUBNETWORK:-}" \
|
||||
"${IP_ALIAS_SIZE:-}")
|
||||
|
||||
gcloud compute instances \
|
||||
${gcloud} compute instances \
|
||||
create "${NODE_INSTANCE_PREFIX}-heapster" \
|
||||
--project "${PROJECT}" \
|
||||
--zone "${ZONE}" \
|
||||
|
Loading…
Reference in New Issue
Block a user