Skip to content

Commit a802493

Browse files
authored
Decrease pipeline AKS cluster cost (#1686)
* fix: decrease hack cluster size to 2 Signed-off-by: Evan Baker <[email protected]> * fix: lb sku basic Signed-off-by: Evan Baker <[email protected]> * fix: no ssh key Signed-off-by: Evan Baker <[email protected]> * fix: set node-vm-size to cheapest available Signed-off-by: Evan Baker <[email protected]> Signed-off-by: Evan Baker <[email protected]>
1 parent 2f09e13 commit a802493

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

hack/swift/Makefile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ USER ?= $(whoami)
1212
OSSKU ?= Ubuntu
1313
CLUSTER ?= $(USER)-$(REGION)
1414
GROUP ?= $(CLUSTER)
15-
REGION ?= centraluseuap
15+
REGION ?= westus2
1616
SUB ?= $(AZURE_SUBSCRIPTION)
1717
VNET ?= $(CLUSTER)
1818

@@ -79,45 +79,53 @@ up: swift-up ## Alias to swift-up
7979

8080
overlay-up: rg-up overlay-net-up ## Brings up an Overlay AzCNI cluster
8181
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
82-
--node-count 3 \
82+
--node-count 2 \
83+
--node-vm-size Standard_B2s \
84+
--load-balancer-sku basic \
8385
--network-plugin azure \
8486
--network-plugin-mode overlay \
8587
--pod-cidr 192.168.0.0/16 \
8688
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
87-
--generate-ssh-keys \
89+
--no-ssh-key \
8890
--yes
8991
@$(MAKE) set-kubeconf
9092

9193
swift-byocni-up: rg-up net-up ## Bring up a SWIFT BYO CNI cluster
9294
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
93-
--node-count 3 \
95+
--node-count 2 \
96+
--node-vm-size Standard_B2s \
97+
--load-balancer-sku basic \
9498
--network-plugin none \
9599
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
96100
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
97-
--generate-ssh-keys \
101+
--no-ssh-key \
98102
--os-sku $(OSSKU) \
99103
--yes
100104
@$(MAKE) set-kubeconf
101105

102106
swift-cilium-up: rg-up net-up ## Bring up a SWIFT Cilium cluster
103107
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
104-
--node-count 3 \
108+
--node-count 2 \
109+
--node-vm-size Standard_B2s \
110+
--load-balancer-sku basic \
105111
--network-plugin azure \
106112
--enable-cilium-dataplane \
107113
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/CiliumDataplanePreview \
108114
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
109115
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
110-
--generate-ssh-keys \
116+
--no-ssh-key \
111117
--yes
112118
@$(MAKE) set-kubeconf
113119

114120
swift-up: rg-up net-up ## Bring up a SWIFT AzCNI cluster
115121
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
116-
--node-count 3 \
122+
--node-count 2 \
123+
--node-vm-size Standard_B2s \
124+
--load-balancer-sku basic \
117125
--network-plugin azure \
118126
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
119127
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
120-
--generate-ssh-keys \
128+
--no-ssh-key \
121129
--yes
122130
@$(MAKE) set-kubeconf
123131

0 commit comments

Comments
 (0)