@@ -8,13 +8,15 @@ AZIMG = mcr.microsoft.com/azure-cli
88AZCLI ?= 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- REGION ?= westus2
11+ AUTOUPGRADE ?= patch
12+ K8S_VER ?= 1.27 # Designated for Long Term Support, July 2025 | Only Ubuntu 22.04 is supported
13+ NODE_COUNT ?= 2
14+ NODEUPGRADE ?= NodeImage
1215OS_SKU ?= Ubuntu
13- WINDOWS_OS_SKU ?= Windows2022
16+ OS_SKU_WIN ?= Windows2022
17+ REGION ?= westus2
1418VM_SIZE ?= Standard_B2s
15- NODE_COUNT ?= 2
16- K8S_VER ?= 1.27 # Designated for Long Term Support, July 2025 | Only Ubuntu 22.04 is supported
17- WINDOWS_VM_SKU ?= Standard_B2s
19+ VM_SIZE_WIN ?= Standard_B2s
1820
1921# overrideable variables
2022SUB ?= $(AZURE_SUBSCRIPTION )
@@ -88,6 +90,9 @@ up: swift-up ## Alias to swift-up
8890
8991overlay-byocni-up : rg-up overlay-net-up # # Brings up an Overlay BYO CNI cluster
9092 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
93+ --auto-upgrade-channel $(AUTOUPGRADE ) \
94+ --node-os-upgrade-channel $(NODEUPGRADE ) \
95+ --kubernetes-version $(K8S_VER ) \
9196 --node-count $(NODE_COUNT ) \
9297 --node-vm-size $(VM_SIZE ) \
9398 --load-balancer-sku basic \
@@ -101,6 +106,9 @@ overlay-byocni-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
101106
102107overlay-cilium-up : rg-up overlay-net-up # # Brings up an Overlay Cilium cluster
103108 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
109+ --auto-upgrade-channel $(AUTOUPGRADE ) \
110+ --node-os-upgrade-channel $(NODEUPGRADE ) \
111+ --kubernetes-version $(K8S_VER ) \
104112 --node-count $(NODE_COUNT ) \
105113 --node-vm-size $(VM_SIZE ) \
106114 --load-balancer-sku basic \
@@ -115,6 +123,9 @@ overlay-cilium-up: rg-up overlay-net-up ## Brings up an Overlay Cilium cluster
115123
116124overlay-up : rg-up overlay-net-up # # Brings up an Overlay AzCNI cluster
117125 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
126+ --auto-upgrade-channel $(AUTOUPGRADE ) \
127+ --node-os-upgrade-channel $(NODEUPGRADE ) \
128+ --kubernetes-version $(K8S_VER ) \
118129 --node-count $(NODE_COUNT ) \
119130 --node-vm-size $(VM_SIZE ) \
120131 --load-balancer-sku basic \
@@ -128,6 +139,9 @@ overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
128139
129140swift-byocni-up : rg-up swift-net-up # # Bring up a SWIFT BYO CNI cluster
130141 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
142+ --auto-upgrade-channel $(AUTOUPGRADE ) \
143+ --node-os-upgrade-channel $(NODEUPGRADE ) \
144+ --kubernetes-version $(K8S_VER ) \
131145 --node-count $(NODE_COUNT ) \
132146 --node-vm-size $(VM_SIZE ) \
133147 --load-balancer-sku basic \
@@ -142,6 +156,9 @@ swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster
142156
143157swift-cilium-up : rg-up swift-net-up # # Bring up a SWIFT Cilium cluster
144158 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
159+ --auto-upgrade-channel $(AUTOUPGRADE ) \
160+ --node-os-upgrade-channel $(NODEUPGRADE ) \
161+ --kubernetes-version $(K8S_VER ) \
145162 --node-count $(NODE_COUNT ) \
146163 --node-vm-size $(VM_SIZE ) \
147164 --load-balancer-sku basic \
@@ -156,6 +173,9 @@ swift-cilium-up: rg-up swift-net-up ## Bring up a SWIFT Cilium cluster
156173
157174swift-up : rg-up swift-net-up # # Bring up a SWIFT AzCNI cluster
158175 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
176+ --auto-upgrade-channel $(AUTOUPGRADE ) \
177+ --node-os-upgrade-channel $(NODEUPGRADE ) \
178+ --kubernetes-version $(K8S_VER ) \
159179 --node-count $(NODE_COUNT ) \
160180 --node-vm-size $(VM_SIZE ) \
161181 --load-balancer-sku basic \
@@ -168,6 +188,9 @@ swift-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
168188
169189cilium-overlay-up : rg-up overlay-net-up # # Brings up an Overlay BYO CNI cluster without kube-proxy for Cilium
170190 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
191+ --auto-upgrade-channel $(AUTOUPGRADE ) \
192+ --node-os-upgrade-channel $(NODEUPGRADE ) \
193+ --kubernetes-version $(K8S_VER ) \
171194 --node-count $(NODE_COUNT ) \
172195 --node-vm-size $(VM_SIZE ) \
173196 --load-balancer-sku basic \
@@ -182,6 +205,9 @@ cilium-overlay-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
182205
183206cilium-podsubnet-up : rg-up swift-net-up # # Bring up a SWIFT BYO CNI cluster without kube-proxy for Cilium
184207 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
208+ --auto-upgrade-channel $(AUTOUPGRADE ) \
209+ --node-os-upgrade-channel $(NODEUPGRADE ) \
210+ --kubernetes-version $(K8S_VER ) \
185211 --node-count $(NODE_COUNT ) \
186212 --node-vm-size $(VM_SIZE ) \
187213 --load-balancer-sku basic \
@@ -196,6 +222,9 @@ cilium-podsubnet-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster with
196222
197223windows-cniv1-up : rg-up overlay-net-up # # Bring up a Windows CNIv1 cluster
198224 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
225+ --auto-upgrade-channel $(AUTOUPGRADE ) \
226+ --node-os-upgrade-channel $(NODEUPGRADE ) \
227+ --kubernetes-version $(K8S_VER ) \
199228 --node-count $(NODE_COUNT ) \
200229 --node-vm-size $(VM_SIZE ) \
201230 --network-plugin azure \
@@ -207,16 +236,19 @@ windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
207236
208237 $(AZCLI) aks nodepool add --resource-group $(GROUP) --cluster-name $(CLUSTER) \
209238 --os-type Windows \
210- --os-sku $(WINDOWS_OS_SKU ) \
239+ --os-sku $(OS_SKU_WIN ) \
211240 --max-pods 250 \
212241 --name npwin \
213242 --node-count $(NODE_COUNT) \
214- -s $(WINDOWS_VM_SKU )
243+ -s $(VM_SIZE_WIN )
215244
216245 @$(MAKE) set-kubeconf
217246
218247linux-cniv1-up : rg-up overlay-net-up
219248 $(AZCLI ) aks create -n $(CLUSTER ) -g $(GROUP ) -l $(REGION ) \
249+ --auto-upgrade-channel $(AUTOUPGRADE ) \
250+ --node-os-upgrade-channel $(NODEUPGRADE ) \
251+ --kubernetes-version $(K8S_VER ) \
220252 --node-count $(NODE_COUNT ) \
221253 --node-vm-size $(VM_SIZE ) \
222254 --max-pods 250 \
@@ -225,7 +257,6 @@ linux-cniv1-up: rg-up overlay-net-up
225257 --os-sku $(OS_SKU ) \
226258 --no-ssh-key \
227259 --yes
228-
229260 @$(MAKE ) set-kubeconf
230261
231262down : # # Delete the cluster
0 commit comments