@@ -19,13 +19,21 @@ OS_SKU_WIN ?= Windows2022
19
19
REGION ?= westus2
20
20
VM_SIZE ?= Standard_B2s
21
21
VM_SIZE_WIN ?= Standard_B2s
22
+ LTS ?= true
22
23
23
24
# overrideable variables
24
25
SUB ?= $(AZURE_SUBSCRIPTION )
25
26
CLUSTER ?= $(USER ) -$(REGION )
26
27
GROUP ?= $(CLUSTER )
27
28
VNET ?= $(CLUSTER )
28
29
30
+ # Long Term Support (LTS)
31
+ ifeq ($(LTS ) ,true)
32
+ LTS = --k8s-support-plan AKSLongTermSupport --tier premium
33
+ else
34
+ LTS =
35
+ endif
36
+
29
37
# #@ Help
30
38
31
39
help : # # Display this help
@@ -64,6 +72,7 @@ vars: ## Show the input vars configured for the cluster commands
64
72
@echo VM_SIZE=$(VM_SIZE )
65
73
@echo NODE_COUNT=$(NODE_COUNT )
66
74
@echo VMSS_NAME=$(VMSS_NAME )
75
+ @echo LTS=$(if $(LTS ) ,$(LTS ) ,empty)
67
76
68
77
69
78
# #@ SWIFT Infra
@@ -103,14 +112,13 @@ overlay-byocni-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
103
112
--node-count $(NODE_COUNT ) \
104
113
--node-vm-size $(VM_SIZE ) \
105
114
--load-balancer-sku standard \
106
- --k8s-support-plan AKSLongTermSupport \
107
- --tier premium \
108
115
--network-plugin none \
109
116
--network-plugin-mode overlay \
110
117
--pod-cidr 192.168.0.0/16 \
111
118
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
112
119
--no-ssh-key \
113
120
--os-sku $(OS_SKU ) \
121
+ $(LTS ) \
114
122
--yes
115
123
ifeq ($(OS ) ,windows)
116
124
@$(MAKE) windows-nodepool-up
@@ -124,14 +132,13 @@ overlay-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up an Overlay BYO
124
132
--kubernetes-version $(K8S_VER ) \
125
133
--node-count $(NODE_COUNT ) \
126
134
--node-vm-size $(VM_SIZE ) \
127
- --k8s-support-plan AKSLongTermSupport \
128
- --tier premium \
129
135
--network-plugin none \
130
136
--network-plugin-mode overlay \
131
137
--pod-cidr 192.168.0.0/16 \
132
138
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
133
139
--no-ssh-key \
134
140
--kube-proxy-config ./kube-proxy.json \
141
+ $(LTS ) \
135
142
--yes
136
143
@$(MAKE ) set-kubeconf
137
144
@@ -142,14 +149,13 @@ overlay-cilium-up: rg-up overlay-net-up ## Brings up an Overlay Cilium cluster
142
149
--kubernetes-version $(K8S_VER ) \
143
150
--node-count $(NODE_COUNT ) \
144
151
--node-vm-size $(VM_SIZE ) \
145
- --k8s-support-plan AKSLongTermSupport \
146
- --tier premium \
147
152
--network-plugin azure \
148
153
--network-dataplane cilium \
149
154
--network-plugin-mode overlay \
150
155
--pod-cidr 192.168.0.0/16 \
151
156
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
152
157
--no-ssh-key \
158
+ $(LTS ) \
153
159
--yes
154
160
@$(MAKE ) set-kubeconf
155
161
@@ -160,13 +166,12 @@ overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
160
166
--kubernetes-version $(K8S_VER ) \
161
167
--node-count $(NODE_COUNT ) \
162
168
--node-vm-size $(VM_SIZE ) \
163
- --k8s-support-plan AKSLongTermSupport \
164
- --tier premium \
165
169
--network-plugin azure \
166
170
--network-plugin-mode overlay \
167
171
--pod-cidr 192.168.0.0/16 \
168
172
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
169
173
--no-ssh-key \
174
+ $(LTS ) \
170
175
--yes
171
176
@$(MAKE ) set-kubeconf
172
177
@@ -178,13 +183,12 @@ swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster
178
183
--node-count $(NODE_COUNT ) \
179
184
--node-vm-size $(VM_SIZE ) \
180
185
--load-balancer-sku standard \
181
- --k8s-support-plan AKSLongTermSupport \
182
- --tier premium \
183
186
--network-plugin none \
184
187
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
185
188
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
186
189
--no-ssh-key \
187
190
--os-sku $(OS_SKU ) \
191
+ $(LTS ) \
188
192
--yes
189
193
ifeq ($(OS ) ,windows)
190
194
@$(MAKE) windows-swift-nodepool-up
@@ -198,14 +202,13 @@ swift-byocni-nokubeproxy-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI clus
198
202
--kubernetes-version $(K8S_VER ) \
199
203
--node-count $(NODE_COUNT ) \
200
204
--node-vm-size $(VM_SIZE ) \
201
- --k8s-support-plan AKSLongTermSupport \
202
- --tier premium \
203
205
--network-plugin none \
204
206
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
205
207
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
206
208
--no-ssh-key \
207
209
--os-sku $(OS_SKU ) \
208
210
--kube-proxy-config ./kube-proxy.json \
211
+ $(LTS ) \
209
212
--yes
210
213
@$(MAKE ) set-kubeconf
211
214
@@ -216,14 +219,13 @@ swift-cilium-up: rg-up swift-net-up ## Bring up a SWIFT Cilium cluster
216
219
--kubernetes-version $(K8S_VER ) \
217
220
--node-count $(NODE_COUNT ) \
218
221
--node-vm-size $(VM_SIZE ) \
219
- --k8s-support-plan AKSLongTermSupport \
220
- --tier premium \
221
222
--network-plugin azure \
222
223
--network-dataplane cilium \
223
224
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
224
225
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
225
226
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
226
227
--no-ssh-key \
228
+ $(LTS ) \
227
229
--yes
228
230
@$(MAKE ) set-kubeconf
229
231
@@ -234,12 +236,11 @@ swift-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
234
236
--kubernetes-version $(K8S_VER ) \
235
237
--node-count $(NODE_COUNT ) \
236
238
--node-vm-size $(VM_SIZE ) \
237
- --k8s-support-plan AKSLongTermSupport \
238
- --tier premium \
239
239
--network-plugin azure \
240
240
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
241
241
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
242
242
--no-ssh-key \
243
+ $(LTS ) \
243
244
--yes
244
245
@$(MAKE ) set-kubeconf
245
246
@@ -250,11 +251,10 @@ swiftv2-multitenancy-cluster-up: rg-up
250
251
--kubernetes-version 1.28 \
251
252
--nodepool-name " mtapool" \
252
253
--node-vm-size $(VM_SIZE ) \
253
- --k8s-support-plan AKSLongTermSupport \
254
- --tier premium \
255
254
--node-count 2 \
256
255
--nodepool-tags fastpathenabled=true \
257
256
--no-ssh-key \
257
+ $(LTS ) \
258
258
--yes
259
259
@$(MAKE ) set-kubeconf
260
260
@@ -277,13 +277,12 @@ vnetscale-swift-byocni-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale
277
277
--kubernetes-version $(K8S_VER ) \
278
278
--node-count $(NODE_COUNT ) \
279
279
--node-vm-size $(VM_SIZE ) \
280
- --k8s-support-plan AKSLongTermSupport \
281
- --tier premium \
282
280
--network-plugin none \
283
281
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
284
282
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
285
283
--no-ssh-key \
286
284
--os-sku $(OS_SKU ) \
285
+ $(LTS ) \
287
286
--yes
288
287
@$(MAKE ) set-kubeconf
289
288
@@ -294,14 +293,13 @@ vnetscale-swift-byocni-nokubeproxy-up: rg-up vnetscale-swift-net-up ## Bring up
294
293
--kubernetes-version $(K8S_VER ) \
295
294
--node-count $(NODE_COUNT ) \
296
295
--node-vm-size $(VM_SIZE ) \
297
- --k8s-support-plan AKSLongTermSupport \
298
- --tier premium \
299
296
--network-plugin none \
300
297
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
301
298
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
302
299
--no-ssh-key \
303
300
--os-sku $(OS_SKU ) \
304
301
--kube-proxy-config ./kube-proxy.json \
302
+ $(LTS ) \
305
303
--yes
306
304
@$(MAKE ) set-kubeconf
307
305
@@ -312,14 +310,13 @@ vnetscale-swift-cilium-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale
312
310
--kubernetes-version $(K8S_VER ) \
313
311
--node-count $(NODE_COUNT ) \
314
312
--node-vm-size $(VM_SIZE ) \
315
- --k8s-support-plan AKSLongTermSupport \
316
- --tier premium \
317
313
--network-plugin azure \
318
314
--network-dataplane cilium \
319
315
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
320
316
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
321
317
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
322
318
--no-ssh-key \
319
+ $(LTS ) \
323
320
--yes
324
321
@$(MAKE ) set-kubeconf
325
322
@@ -330,8 +327,6 @@ vnetscale-swift-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT
330
327
--kubernetes-version $(K8S_VER ) \
331
328
--node-count $(NODE_COUNT ) \
332
329
--node-vm-size $(VM_SIZE ) \
333
- --k8s-support-plan AKSLongTermSupport \
334
- --tier premium \
335
330
--network-plugin azure \
336
331
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
337
332
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
@@ -346,13 +341,12 @@ windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
346
341
--kubernetes-version $(K8S_VER ) \
347
342
--node-count $(NODE_COUNT ) \
348
343
--node-vm-size $(VM_SIZE ) \
349
- --k8s-support-plan AKSLongTermSupport \
350
- --tier premium \
351
344
--network-plugin azure \
352
345
--windows-admin-password $(WINDOWS_PASSWORD ) \
353
346
--windows-admin-username $(WINDOWS_USERNAME ) \
354
347
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
355
348
--no-ssh-key \
349
+ $(LTS ) \
356
350
--yes
357
351
@$(MAKE ) windows-nodepool-up
358
352
@$(MAKE ) set-kubeconf
@@ -364,13 +358,12 @@ linux-cniv1-up: rg-up overlay-net-up ## Bring up a Linux CNIv1 cluster
364
358
--kubernetes-version $(K8S_VER ) \
365
359
--node-count $(NODE_COUNT ) \
366
360
--node-vm-size $(VM_SIZE ) \
367
- --k8s-support-plan AKSLongTermSupport \
368
- --tier premium \
369
361
--max-pods 250 \
370
362
--network-plugin azure \
371
363
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
372
364
--os-sku $(OS_SKU ) \
373
365
--no-ssh-key \
366
+ $(LTS ) \
374
367
--yes
375
368
@$(MAKE ) set-kubeconf
376
369
@@ -381,14 +374,13 @@ dualstack-overlay-up: rg-up overlay-net-up ## Brings up an dualstack Overlay clu
381
374
--kubernetes-version $(K8S_VER ) \
382
375
--node-count $(NODE_COUNT ) \
383
376
--node-vm-size $(VM_SIZE ) \
384
- --k8s-support-plan AKSLongTermSupport \
385
- --tier premium \
386
377
--network-plugin azure \
387
378
--network-plugin-mode overlay \
388
379
--subscription $(SUB ) \
389
380
--ip-families ipv4,ipv6 \
390
381
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
391
382
--no-ssh-key \
383
+ $(LTS ) \
392
384
--yes
393
385
@$(MAKE ) set-kubeconf
394
386
@@ -399,14 +391,13 @@ dualstack-overlay-byocni-up: rg-up overlay-net-up ## Brings up an dualstack Over
399
391
--kubernetes-version $(K8S_VER ) \
400
392
--node-count $(NODE_COUNT ) \
401
393
--node-vm-size $(VM_SIZE ) \
402
- --k8s-support-plan AKSLongTermSupport \
403
- --tier premium \
404
394
--network-plugin none \
405
395
--network-plugin-mode overlay \
406
396
--subscription $(SUB ) \
407
397
--ip-families ipv4,ipv6 \
408
398
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
409
399
--no-ssh-key \
400
+ $(LTS ) \
410
401
--yes
411
402
@$(MAKE ) set-kubeconf
412
403
@@ -417,15 +408,14 @@ cilium-dualstack-up: rg-up overlay-net-up ## Brings up a Cilium Dualstack Overla
417
408
--kubernetes-version $(K8S_VER ) \
418
409
--node-count $(NODE_COUNT ) \
419
410
--node-vm-size $(VM_SIZE ) \
420
- --k8s-support-plan AKSLongTermSupport \
421
- --tier premium \
422
411
--network-plugin azure \
423
412
--network-plugin-mode overlay \
424
413
--network-dataplane cilium \
425
414
--subscription $(SUB ) \
426
415
--ip-families ipv4,ipv6 \
427
416
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
428
417
--no-ssh-key \
418
+ $(LTS ) \
429
419
--yes
430
420
@$(MAKE ) set-kubeconf
431
421
@@ -436,15 +426,14 @@ dualstack-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up a Dualstack o
436
426
--kubernetes-version $(K8S_VER ) \
437
427
--node-count $(NODE_COUNT ) \
438
428
--node-vm-size $(VM_SIZE ) \
439
- --k8s-support-plan AKSLongTermSupport \
440
- --tier premium \
441
429
--network-plugin none \
442
430
--network-plugin-mode overlay \
443
431
--subscription $(SUB ) \
444
432
--ip-families ipv4,ipv6 \
445
433
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AzureOverlayDualStackPreview \
446
434
--no-ssh-key \
447
435
--kube-proxy-config ./kube-proxy.json \
436
+ $(LTS ) \
448
437
--yes
449
438
@$(MAKE ) set-kubeconf
450
439
0 commit comments