mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #51951 from shyamjvs/heapster-node-with-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 :(
This commit is contained in:
		@@ -1312,6 +1312,12 @@ function create-nodes() {
 | 
				
			|||||||
# - SUBNETWORK
 | 
					# - 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_PROJECT}" \
 | 
					      "${NETWORK_PROJECT}" \
 | 
				
			||||||
      "${REGION}" \
 | 
					      "${REGION}" \
 | 
				
			||||||
@@ -1321,7 +1327,7 @@ function create-heapster-node() {
 | 
				
			|||||||
      "${ENABLE_IP_ALIASES:-}" \
 | 
					      "${ENABLE_IP_ALIASES:-}" \
 | 
				
			||||||
      "${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}" \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user