Skip to content

Commit 55c7675

Browse files
k-routhushubham-pathak-03rbtrjpayne3506
committed
ci: [Service Tags] add public ips with service tags for LBs during cluster creation (#3277)
* Create an outbound public ip for LB/Cilium cluster * create and attach public ip for cilium e2e cluster * Test cluster independent ip creation * Test outbound public ip creation * Test outbound public ip creation * Test outbound public ip creation with azcli creds * Test outbound public ip creation with azcli creds * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add lb ip creation alias call for clusters in makefile * Add managed identity to public ip/load balancer * Add managed identity to public ip/load balancer * Test wo managed identity * Test wo managed identity * Add Public ip to one cluster * Add public to all cluster creations * Add public ip * Fix spacing * Fix spacing * Add LB to win cni v1 cluster * Add LB to win cni v1 cluster * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * Add ip-tag variable to makefile * updated service tag to 'DelegatedNetworkControllerTest' * create public IP as target * add ipv6 public ips to dualstack * updated v6 ip * remove space * added public ip for nodesubnet-byocni-nokubeproxy-up resource * addressed comments on PR * parameterize ip v4 & v6 Co-authored-by: Evan Baker <[email protected]> Signed-off-by: Keerthana Routhu <[email protected]> * address comments * address PR comments * Update hack/aks/Makefile Co-authored-by: John Payne <[email protected]> Signed-off-by: Keerthana Routhu <[email protected]> * test * test * test --------- Signed-off-by: Keerthana Routhu <[email protected]> Co-authored-by: shubham-pathak-03 <[email protected]> Co-authored-by: Evan Baker <[email protected]> Co-authored-by: John Payne <[email protected]>
1 parent 2f58f9c commit 55c7675

File tree

1 file changed

+75
-35
lines changed

1 file changed

+75
-35
lines changed

hack/aks/Makefile

Lines changed: 75 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@ AZIMG = mcr.microsoft.com/azure-cli
88
AZCLI ?= docker run --rm -v $(AZCFG):/root/.azure -v $(KUBECFG):/root/.kube -v $(SSH):/root/.ssh -v $(PWD):/root/tmpsrc $(AZIMG) az
99

1010
# overrideable defaults
11-
AUTOUPGRADE ?= patch
12-
K8S_VER ?= 1.29
13-
NODE_COUNT ?= 2
14-
NODE_COUNT_WIN ?= $(NODE_COUNT)
15-
NODEUPGRADE ?= NodeImage
16-
OS ?= linux # Used to signify if you want to bring up a windows nodePool on byocni clusters
17-
OS_SKU ?= Ubuntu
18-
OS_SKU_WIN ?= Windows2022
19-
REGION ?= westus2
20-
VM_SIZE ?= Standard_B2s
21-
VM_SIZE_WIN ?= Standard_B2s
22-
LTS ?= true
11+
AUTOUPGRADE ?= patch
12+
K8S_VER ?= 1.29
13+
NODE_COUNT ?= 2
14+
NODE_COUNT_WIN ?= $(NODE_COUNT)
15+
NODEUPGRADE ?= NodeImage
16+
OS ?= linux # Used to signify if you want to bring up a windows nodePool on byocni clusters
17+
OS_SKU ?= Ubuntu
18+
OS_SKU_WIN ?= Windows2022
19+
REGION ?= westus2
20+
VM_SIZE ?= Standard_B2s
21+
VM_SIZE_WIN ?= Standard_B2s
22+
LTS ?= true
23+
IP_TAG ?= FirstPartyUsage=/DelegatedNetworkControllerTest
24+
IP_PREFIX ?= serviceTaggedIp
25+
PUBLIC_IP_ID ?= /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/publicIPAddresses
26+
PUBLIC_IPv4 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v4
27+
PUBLIC_IPv6 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v6
28+
KUBE_PROXY_JSON_PATH ?= ./kube-proxy.json
2329

2430
# overrideable variables
2531
SUB ?= $(AZURE_SUBSCRIPTION)
@@ -50,6 +56,23 @@ azcfg: ## Set the $AZCLI to use aks-preview
5056
@$(AZCLI) extension add --name aks-preview --yes
5157
@$(AZCLI) extension update --name aks-preview
5258

59+
ip:
60+
$(AZCLI) network public-ip create --name $(IP_PREFIX)-$(CLUSTER)-$(IPVERSION) \
61+
--resource-group $(GROUP) \
62+
--allocation-method Static \
63+
--ip-tags $(IP_TAG) \
64+
--location $(REGION) \
65+
--sku Standard \
66+
--tier Regional \
67+
--version IP$(IPVERSION)
68+
69+
ipv4:
70+
@$(MAKE) ip IPVERSION=v4
71+
72+
ipv6:
73+
@$(MAKE) ip IPVERSION=v6
74+
75+
5376
set-kubeconf: ## Adds the kubeconf for $CLUSTER
5477
$(AZCLI) aks get-credentials -n $(CLUSTER) -g $(GROUP)
5578

@@ -97,21 +120,20 @@ overlay-net-up: ## Create vnet, nodenet subnets
97120
$(AZCLI) network vnet create -g $(GROUP) -l $(REGION) --name $(VNET) --address-prefixes 10.0.0.0/8 -o none
98121
$(AZCLI) network vnet subnet create -g $(GROUP) --vnet-name $(VNET) --name nodenet --address-prefix 10.10.0.0/16 -o none
99122

100-
101123
##@ AKS Clusters
102124

103125
byocni-up: swift-byocni-up ## Alias to swift-byocni-up
104126
cilium-up: swift-cilium-up ## Alias to swift-cilium-up
105127
up: swift-up ## Alias to swift-up
106128

107-
overlay-byocni-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
129+
overlay-byocni-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay BYO CNI cluster
108130
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
109131
--auto-upgrade-channel $(AUTOUPGRADE) \
110132
--node-os-upgrade-channel $(NODEUPGRADE) \
111133
--kubernetes-version $(K8S_VER) \
112134
--node-count $(NODE_COUNT) \
113135
--node-vm-size $(VM_SIZE) \
114-
--load-balancer-sku standard \
136+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
115137
--network-plugin none \
116138
--network-plugin-mode overlay \
117139
--pod-cidr 192.168.0.0/16 \
@@ -125,13 +147,14 @@ ifeq ($(OS),windows)
125147
endif
126148
@$(MAKE) set-kubeconf
127149

128-
overlay-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster without kube-proxy
150+
overlay-byocni-nokubeproxy-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay BYO CNI cluster without kube-proxy
129151
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
130152
--auto-upgrade-channel $(AUTOUPGRADE) \
131153
--node-os-upgrade-channel $(NODEUPGRADE) \
132154
--kubernetes-version $(K8S_VER) \
133155
--node-count $(NODE_COUNT) \
134156
--node-vm-size $(VM_SIZE) \
157+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
135158
--network-plugin none \
136159
--network-plugin-mode overlay \
137160
--pod-cidr 192.168.0.0/16 \
@@ -142,13 +165,14 @@ overlay-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up an Overlay BYO
142165
--yes
143166
@$(MAKE) set-kubeconf
144167

145-
overlay-cilium-up: rg-up overlay-net-up ## Brings up an Overlay Cilium cluster
168+
overlay-cilium-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay Cilium cluster
146169
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
147170
--auto-upgrade-channel $(AUTOUPGRADE) \
148171
--node-os-upgrade-channel $(NODEUPGRADE) \
149172
--kubernetes-version $(K8S_VER) \
150173
--node-count $(NODE_COUNT) \
151174
--node-vm-size $(VM_SIZE) \
175+
--load-balancer-outbound-ips (PUBLIC_IPv4) \
152176
--network-plugin azure \
153177
--network-dataplane cilium \
154178
--network-plugin-mode overlay \
@@ -159,13 +183,14 @@ overlay-cilium-up: rg-up overlay-net-up ## Brings up an Overlay Cilium cluster
159183
--yes
160184
@$(MAKE) set-kubeconf
161185

162-
overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
186+
overlay-up: rg-up ipv4 overlay-net-up ## Brings up an Overlay AzCNI cluster
163187
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
164188
--auto-upgrade-channel $(AUTOUPGRADE) \
165189
--node-os-upgrade-channel $(NODEUPGRADE) \
166190
--kubernetes-version $(K8S_VER) \
167191
--node-count $(NODE_COUNT) \
168192
--node-vm-size $(VM_SIZE) \
193+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
169194
--network-plugin azure \
170195
--network-plugin-mode overlay \
171196
--pod-cidr 192.168.0.0/16 \
@@ -175,14 +200,14 @@ overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
175200
--yes
176201
@$(MAKE) set-kubeconf
177202

178-
swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster
203+
swift-byocni-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT BYO CNI cluster
179204
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
180205
--auto-upgrade-channel $(AUTOUPGRADE) \
181206
--node-os-upgrade-channel $(NODEUPGRADE) \
182207
--kubernetes-version $(K8S_VER) \
183208
--node-count $(NODE_COUNT) \
184209
--node-vm-size $(VM_SIZE) \
185-
--load-balancer-sku standard \
210+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
186211
--network-plugin none \
187212
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
188213
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
@@ -195,13 +220,14 @@ ifeq ($(OS),windows)
195220
endif
196221
@$(MAKE) set-kubeconf
197222

198-
swift-byocni-nokubeproxy-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster without kube-proxy
223+
swift-byocni-nokubeproxy-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT BYO CNI cluster without kube-proxy, add managed identity and public ip
199224
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
200225
--auto-upgrade-channel $(AUTOUPGRADE) \
201226
--node-os-upgrade-channel $(NODEUPGRADE) \
202227
--kubernetes-version $(K8S_VER) \
203228
--node-count $(NODE_COUNT) \
204229
--node-vm-size $(VM_SIZE) \
230+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
205231
--network-plugin none \
206232
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
207233
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
@@ -212,13 +238,14 @@ swift-byocni-nokubeproxy-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI clus
212238
--yes
213239
@$(MAKE) set-kubeconf
214240

215-
swift-cilium-up: rg-up swift-net-up ## Bring up a SWIFT Cilium cluster
241+
swift-cilium-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT Cilium cluster
216242
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
217243
--auto-upgrade-channel $(AUTOUPGRADE) \
218244
--node-os-upgrade-channel $(NODEUPGRADE) \
219245
--kubernetes-version $(K8S_VER) \
220246
--node-count $(NODE_COUNT) \
221247
--node-vm-size $(VM_SIZE) \
248+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
222249
--network-plugin azure \
223250
--network-dataplane cilium \
224251
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
@@ -229,13 +256,14 @@ swift-cilium-up: rg-up swift-net-up ## Bring up a SWIFT Cilium cluster
229256
--yes
230257
@$(MAKE) set-kubeconf
231258

232-
swift-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
259+
swift-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT AzCNI cluster
233260
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
234261
--auto-upgrade-channel $(AUTOUPGRADE) \
235262
--node-os-upgrade-channel $(NODEUPGRADE) \
236263
--kubernetes-version $(K8S_VER) \
237264
--node-count $(NODE_COUNT) \
238265
--node-vm-size $(VM_SIZE) \
266+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
239267
--network-plugin azure \
240268
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
241269
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
@@ -244,39 +272,42 @@ swift-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
244272
--yes
245273
@$(MAKE) set-kubeconf
246274

247-
swiftv2-multitenancy-cluster-up: rg-up
275+
swiftv2-multitenancy-cluster-up: rg-up ipv4
248276
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
249277
--network-plugin azure \
250278
--network-plugin-mode overlay \
251279
--kubernetes-version 1.28 \
252280
--nodepool-name "mtapool" \
253281
--node-vm-size $(VM_SIZE) \
254282
--node-count 2 \
283+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
255284
--nodepool-tags fastpathenabled=true \
256285
--no-ssh-key \
257286
$(LTS) \
258287
--yes
259288
@$(MAKE) set-kubeconf
260289

261-
swiftv2-dummy-cluster-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
290+
swiftv2-dummy-cluster-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT AzCNI cluster
262291
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
263292
--network-plugin azure \
264293
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
265294
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
295+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
266296
--no-ssh-key \
267297
--yes
268298
@$(MAKE) set-kubeconf
269299

270300
# The below Vnet Scale clusters are currently only in private preview and available with Kubernetes 1.28
271301
# These AKS clusters can only be created in a limited subscription listed here:
272302
# https://dev.azure.com/msazure/CloudNativeCompute/_git/aks-rp?path=/resourceprovider/server/microsoft.com/containerservice/flags/network_flags.go&version=GBmaster&line=134&lineEnd=135&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents
273-
vnetscale-swift-byocni-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT BYO CNI cluster
303+
vnetscale-swift-byocni-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT BYO CNI cluster
274304
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
275305
--auto-upgrade-channel $(AUTOUPGRADE) \
276306
--node-os-upgrade-channel $(NODEUPGRADE) \
277307
--kubernetes-version $(K8S_VER) \
278308
--node-count $(NODE_COUNT) \
279309
--node-vm-size $(VM_SIZE) \
310+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
280311
--network-plugin none \
281312
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
282313
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
@@ -286,13 +317,14 @@ vnetscale-swift-byocni-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale
286317
--yes
287318
@$(MAKE) set-kubeconf
288319

289-
vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT BYO CNI cluster without kube-proxy
320+
vnetscale-swift-byocni-nokubeproxy-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT BYO CNI cluster without kube-proxy
290321
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
291322
--auto-upgrade-channel $(AUTOUPGRADE) \
292323
--node-os-upgrade-channel $(NODEUPGRADE) \
293324
--kubernetes-version $(K8S_VER) \
294325
--node-count $(NODE_COUNT) \
295326
--node-vm-size $(VM_SIZE) \
327+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
296328
--network-plugin none \
297329
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
298330
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
@@ -303,13 +335,14 @@ vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up
303335
--yes
304336
@$(MAKE) set-kubeconf
305337

306-
vnetscale-swift-cilium-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT Cilium cluster
338+
vnetscale-swift-cilium-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT Cilium cluster
307339
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
308340
--auto-upgrade-channel $(AUTOUPGRADE) \
309341
--node-os-upgrade-channel $(NODEUPGRADE) \
310342
--kubernetes-version $(K8S_VER) \
311343
--node-count $(NODE_COUNT) \
312344
--node-vm-size $(VM_SIZE) \
345+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
313346
--network-plugin azure \
314347
--network-dataplane cilium \
315348
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
@@ -320,27 +353,29 @@ vnetscale-swift-cilium-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale
320353
--yes
321354
@$(MAKE) set-kubeconf
322355

323-
vnetscale-swift-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT AzCNI cluster
356+
vnetscale-swift-up: rg-up ipv4 vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT AzCNI cluster
324357
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
325358
--auto-upgrade-channel $(AUTOUPGRADE) \
326359
--node-os-upgrade-channel $(NODEUPGRADE) \
327360
--kubernetes-version $(K8S_VER) \
328361
--node-count $(NODE_COUNT) \
329362
--node-vm-size $(VM_SIZE) \
363+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
330364
--network-plugin azure \
331365
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
332366
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
333367
--no-ssh-key \
334368
--yes
335369
@$(MAKE) set-kubeconf
336370

337-
windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
371+
windows-cniv1-up: rg-up ipv4 overlay-net-up ## Bring up a Windows CNIv1 cluster
338372
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
339373
--auto-upgrade-channel $(AUTOUPGRADE) \
340374
--node-os-upgrade-channel $(NODEUPGRADE) \
341375
--kubernetes-version $(K8S_VER) \
342376
--node-count $(NODE_COUNT) \
343377
--node-vm-size $(VM_SIZE) \
378+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
344379
--network-plugin azure \
345380
--windows-admin-password $(WINDOWS_PASSWORD) \
346381
--windows-admin-username $(WINDOWS_USERNAME) \
@@ -351,13 +386,14 @@ windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
351386
@$(MAKE) windows-nodepool-up
352387
@$(MAKE) set-kubeconf
353388

354-
linux-cniv1-up: rg-up overlay-net-up ## Bring up a Linux CNIv1 cluster
389+
linux-cniv1-up: rg-up ipv4 overlay-net-up ## Bring up a Linux CNIv1 cluster
355390
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
356391
--auto-upgrade-channel $(AUTOUPGRADE) \
357392
--node-os-upgrade-channel $(NODEUPGRADE) \
358393
--kubernetes-version $(K8S_VER) \
359394
--node-count $(NODE_COUNT) \
360395
--node-vm-size $(VM_SIZE) \
396+
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
361397
--max-pods 250 \
362398
--network-plugin azure \
363399
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
@@ -367,13 +403,14 @@ linux-cniv1-up: rg-up overlay-net-up ## Bring up a Linux CNIv1 cluster
367403
--yes
368404
@$(MAKE) set-kubeconf
369405

370-
dualstack-overlay-up: rg-up overlay-net-up ## Brings up an dualstack Overlay cluster with Linux node only
406+
dualstack-overlay-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up an dualstack Overlay cluster with Linux node only
371407
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
372408
--auto-upgrade-channel $(AUTOUPGRADE) \
373409
--node-os-upgrade-channel $(NODEUPGRADE) \
374410
--kubernetes-version $(K8S_VER) \
375411
--node-count $(NODE_COUNT) \
376412
--node-vm-size $(VM_SIZE) \
413+
--load-balancer-outbound-ips $(PUBLIC_IPv4),$(PUBLIC_IPv6) \
377414
--network-plugin azure \
378415
--network-plugin-mode overlay \
379416
--subscription $(SUB) \
@@ -384,13 +421,14 @@ dualstack-overlay-up: rg-up overlay-net-up ## Brings up an dualstack Overlay clu
384421
--yes
385422
@$(MAKE) set-kubeconf
386423

387-
dualstack-overlay-byocni-up: rg-up overlay-net-up ## Brings up an dualstack Overlay BYO CNI cluster
424+
dualstack-overlay-byocni-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up an dualstack Overlay BYO CNI cluster
388425
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
389426
--auto-upgrade-channel $(AUTOUPGRADE) \
390427
--node-os-upgrade-channel $(NODEUPGRADE) \
391428
--kubernetes-version $(K8S_VER) \
392429
--node-count $(NODE_COUNT) \
393430
--node-vm-size $(VM_SIZE) \
431+
--load-balancer-outbound-ips $(PUBLIC_IPv4),$(PUBLIC_IPv6) \
394432
--network-plugin none \
395433
--network-plugin-mode overlay \
396434
--subscription $(SUB) \
@@ -401,13 +439,14 @@ dualstack-overlay-byocni-up: rg-up overlay-net-up ## Brings up an dualstack Over
401439
--yes
402440
@$(MAKE) set-kubeconf
403441

404-
cilium-dualstack-up: rg-up overlay-net-up ## Brings up a Cilium Dualstack Overlay cluster with Linux node only
442+
cilium-dualstack-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up a Cilium Dualstack Overlay cluster with Linux node only
405443
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
406444
--auto-upgrade-channel $(AUTOUPGRADE) \
407445
--node-os-upgrade-channel $(NODEUPGRADE) \
408446
--kubernetes-version $(K8S_VER) \
409447
--node-count $(NODE_COUNT) \
410448
--node-vm-size $(VM_SIZE) \
449+
--load-balancer-outbound-ips $(PUBLIC_IPv4),$(PUBLIC_IPv6) \
411450
--network-plugin azure \
412451
--network-plugin-mode overlay \
413452
--network-dataplane cilium \
@@ -419,13 +458,14 @@ cilium-dualstack-up: rg-up overlay-net-up ## Brings up a Cilium Dualstack Overla
419458
--yes
420459
@$(MAKE) set-kubeconf
421460

422-
dualstack-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up a Dualstack overlay BYOCNI cluster with Linux node only and no kube-proxy
461+
dualstack-byocni-nokubeproxy-up: rg-up ipv4 ipv6 overlay-net-up ## Brings up a Dualstack overlay BYOCNI cluster with Linux node only and no kube-proxy
423462
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
424463
--auto-upgrade-channel $(AUTOUPGRADE) \
425464
--node-os-upgrade-channel $(NODEUPGRADE) \
426465
--kubernetes-version $(K8S_VER) \
427466
--node-count $(NODE_COUNT) \
428467
--node-vm-size $(VM_SIZE) \
468+
--load-balancer-outbound-ips $(PUBLIC_IPv4),$(PUBLIC_IPv6) \
429469
--network-plugin none \
430470
--network-plugin-mode overlay \
431471
--subscription $(SUB) \

0 commit comments

Comments
 (0)