@@ -17,13 +17,21 @@ OS_SKU_WIN ?= Windows2022
17
17
REGION ?= westus2
18
18
VM_SIZE ?= Standard_B2s
19
19
VM_SIZE_WIN ?= Standard_B2s
20
+ LTS ?= true
20
21
21
22
# overrideable variables
22
23
SUB ?= $(AZURE_SUBSCRIPTION )
23
24
CLUSTER ?= $(USER ) -$(REGION )
24
25
GROUP ?= $(CLUSTER )
25
26
VNET ?= $(CLUSTER )
26
27
28
+ # Long Term Support (LTS)
29
+ ifeq ($(LTS ) ,true)
30
+ LTS = --k8s-support-plan AKSLongTermSupport --tier premium
31
+ else
32
+ LTS =
33
+ endif
34
+
27
35
# #@ Help
28
36
29
37
help : # # Display this help
@@ -62,6 +70,7 @@ vars: ## Show the input vars configured for the cluster commands
62
70
@echo VM_SIZE=$(VM_SIZE )
63
71
@echo NODE_COUNT=$(NODE_COUNT )
64
72
@echo VMSS_NAME=$(VMSS_NAME )
73
+ @echo LTS=$(if $(LTS ) ,$(LTS ) ,empty)
65
74
66
75
67
76
# #@ SWIFT Infra
@@ -95,13 +104,12 @@ overlay-byocni-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
95
104
--kubernetes-version $(K8S_VER ) \
96
105
--node-count $(NODE_COUNT ) \
97
106
--node-vm-size $(VM_SIZE ) \
98
- --k8s-support-plan AKSLongTermSupport \
99
- --tier premium \
100
107
--network-plugin none \
101
108
--network-plugin-mode overlay \
102
109
--pod-cidr 192.168.0.0/16 \
103
110
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
104
111
--no-ssh-key \
112
+ $(LTS ) \
105
113
--yes
106
114
@$(MAKE ) set-kubeconf
107
115
@@ -112,14 +120,13 @@ overlay-cilium-up: rg-up overlay-net-up ## Brings up an Overlay Cilium cluster
112
120
--kubernetes-version $(K8S_VER ) \
113
121
--node-count $(NODE_COUNT ) \
114
122
--node-vm-size $(VM_SIZE ) \
115
- --k8s-support-plan AKSLongTermSupport \
116
- --tier premium \
117
123
--network-plugin azure \
118
124
--network-dataplane cilium \
119
125
--network-plugin-mode overlay \
120
126
--pod-cidr 192.168.0.0/16 \
121
127
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
122
128
--no-ssh-key \
129
+ $(LTS ) \
123
130
--yes
124
131
@$(MAKE ) set-kubeconf
125
132
@@ -130,13 +137,12 @@ overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
130
137
--kubernetes-version $(K8S_VER ) \
131
138
--node-count $(NODE_COUNT ) \
132
139
--node-vm-size $(VM_SIZE ) \
133
- --k8s-support-plan AKSLongTermSupport \
134
- --tier premium \
135
140
--network-plugin azure \
136
141
--network-plugin-mode overlay \
137
142
--pod-cidr 192.168.0.0/16 \
138
143
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
139
144
--no-ssh-key \
145
+ $(LTS ) \
140
146
--yes
141
147
@$(MAKE ) set-kubeconf
142
148
@@ -147,13 +153,12 @@ swift-byocni-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster
147
153
--kubernetes-version $(K8S_VER ) \
148
154
--node-count $(NODE_COUNT ) \
149
155
--node-vm-size $(VM_SIZE ) \
150
- --k8s-support-plan AKSLongTermSupport \
151
- --tier premium \
152
156
--network-plugin none \
153
157
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
154
158
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
155
159
--no-ssh-key \
156
160
--os-sku $(OS_SKU ) \
161
+ $(LTS ) \
157
162
--yes
158
163
@$(MAKE ) set-kubeconf
159
164
@@ -165,14 +170,13 @@ swift-cilium-up: rg-up swift-net-up ## Bring up a SWIFT Cilium cluster
165
170
--kubernetes-version $(K8S_VER ) \
166
171
--node-count $(NODE_COUNT ) \
167
172
--node-vm-size $(VM_SIZE ) \
168
- --k8s-support-plan AKSLongTermSupport \
169
- --tier premium \
170
173
--network-plugin azure \
171
174
--network-dataplane cilium \
172
175
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
173
176
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
174
177
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
175
178
--no-ssh-key \
179
+ $(LTS ) \
176
180
--yes
177
181
@$(MAKE ) set-kubeconf
178
182
@@ -183,12 +187,11 @@ swift-up: rg-up swift-net-up ## Bring up a SWIFT AzCNI cluster
183
187
--kubernetes-version $(K8S_VER ) \
184
188
--node-count $(NODE_COUNT ) \
185
189
--node-vm-size $(VM_SIZE ) \
186
- --k8s-support-plan AKSLongTermSupport \
187
- --tier premium \
188
190
--network-plugin azure \
189
191
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
190
192
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
191
193
--no-ssh-key \
194
+ $(LTS ) \
192
195
--yes
193
196
@$(MAKE ) set-kubeconf
194
197
@@ -199,14 +202,13 @@ cilium-overlay-up: rg-up overlay-net-up ## Brings up an Overlay BYO CNI cluster
199
202
--kubernetes-version $(K8S_VER ) \
200
203
--node-count $(NODE_COUNT ) \
201
204
--node-vm-size $(VM_SIZE ) \
202
- --k8s-support-plan AKSLongTermSupport \
203
- --tier premium \
204
205
--network-plugin none \
205
206
--network-plugin-mode overlay \
206
207
--pod-cidr 192.168.0.0/16 \
207
208
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
208
209
--no-ssh-key \
209
210
--kube-proxy-config ./kube-proxy.json \
211
+ $(LTS ) \
210
212
--yes
211
213
@$(MAKE ) set-kubeconf
212
214
@@ -217,14 +219,13 @@ cilium-podsubnet-up: rg-up swift-net-up ## Bring up a SWIFT BYO CNI cluster with
217
219
--kubernetes-version $(K8S_VER ) \
218
220
--node-count $(NODE_COUNT ) \
219
221
--node-vm-size $(VM_SIZE ) \
220
- --k8s-support-plan AKSLongTermSupport \
221
- --tier premium \
222
222
--network-plugin none \
223
223
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
224
224
--pod-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/podnet \
225
225
--no-ssh-key \
226
226
--os-sku $(OS_SKU ) \
227
227
--kube-proxy-config ./kube-proxy.json \
228
+ $(LTS ) \
228
229
--yes
229
230
@$(MAKE ) set-kubeconf
230
231
@@ -235,13 +236,12 @@ windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
235
236
--kubernetes-version $(K8S_VER ) \
236
237
--node-count $(NODE_COUNT ) \
237
238
--node-vm-size $(VM_SIZE ) \
238
- --k8s-support-plan AKSLongTermSupport \
239
- --tier premium \
240
239
--network-plugin azure \
241
240
--windows-admin-password $(WINDOWS_PASSWORD ) \
242
241
--windows-admin-username $(WINDOWS_USERNAME ) \
243
242
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
244
243
--no-ssh-key \
244
+ $(LTS ) \
245
245
--yes
246
246
247
247
$(AZCLI) aks nodepool add --resource-group $(GROUP) --cluster-name $(CLUSTER) \
@@ -261,13 +261,12 @@ linux-cniv1-up: rg-up overlay-net-up
261
261
--kubernetes-version $(K8S_VER ) \
262
262
--node-count $(NODE_COUNT ) \
263
263
--node-vm-size $(VM_SIZE ) \
264
- --k8s-support-plan AKSLongTermSupport \
265
- --tier premium \
266
264
--max-pods 250 \
267
265
--network-plugin azure \
268
266
--vnet-subnet-id /subscriptions/$(SUB ) /resourceGroups/$(GROUP ) /providers/Microsoft.Network/virtualNetworks/$(VNET ) /subnets/nodenet \
269
267
--os-sku $(OS_SKU ) \
270
268
--no-ssh-key \
269
+ $(LTS ) \
271
270
--yes
272
271
@$(MAKE ) set-kubeconf
273
272
0 commit comments