File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -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
You can’t perform that action at this time.
0 commit comments