Skip to content

Commit

Permalink
Merge pull request kubernetes#51951 from shyamjvs/heapster-node-with-…
Browse files Browse the repository at this point in the history
…ip-alias

Automatic merge from submit-queue

Make heapster VM creation work with IP aliases

Our experiment with 5k-node run today failed due to this :(
  • Loading branch information
Kubernetes Submit Queue authored Sep 5, 2017
2 parents 8b9e8cf + 009f62e commit bcf22bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,12 @@ function create-nodes() {
# - 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_PROJECT}" \
"${REGION}" \
Expand All @@ -1321,7 +1327,7 @@ function create-heapster-node() {
"${ENABLE_IP_ALIASES:-}" \
"${IP_ALIAS_SIZE:-}")

gcloud compute instances \
${gcloud} compute instances \
create "${NODE_INSTANCE_PREFIX}-heapster" \
--project "${PROJECT}" \
--zone "${ZONE}" \
Expand Down

0 comments on commit bcf22bc

Please sign in to comment.