Skip to content

Commit d9c0dd8

Browse files
author
sivakami
committed
Update dummy clusters.
1 parent 68c98ae commit d9c0dd8

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.pipelines/swiftv2-long-running/scripts/create_vnets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ for i in "${!VNAMES[@]}"; do
6969
continue
7070
fi
7171
cluster_name="${BUILD_ID}-${VNET}-${PODSUBNET}"
72-
make -C ./hack/aks swiftv2-dummy-cluster-subnet-delegator-up \
72+
make -C ./hack/aks swiftv2-dummy-cluster-up \
7373
AZCLI=az CLUSTER=$cluster_name GROUP=$RG REGION=$LOCATION \
7474
SUB=$SUB_ID VNET=$VNET POD_SUBNET=$PODSUBNET \
7575
&& echo "Created dummy cluster for $VNET subnet $PODSUBNET"

hack/aks/Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ PUBLIC_IPv4 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v4
2828
PUBLIC_IPv6 ?= $(PUBLIC_IP_ID)/$(IP_PREFIX)-$(CLUSTER)-v6
2929
KUBE_PROXY_JSON_PATH ?= ./kube-proxy.json
3030
LTS ?= false
31+
POD_SUBNET ?= podnet
32+
3133

3234
# overrideable variables
3335
SUB ?= $(AZURE_SUBSCRIPTION)
@@ -286,20 +288,11 @@ swiftv2-multitenancy-cluster-up: rg-up ipv4
286288
@$(MAKE) set-kubeconf
287289

288290
swiftv2-dummy-cluster-up: rg-up ipv4 swift-net-up ## Bring up a SWIFT AzCNI cluster
289-
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
290-
--network-plugin azure \
291-
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
292-
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet \
293-
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
294-
--no-ssh-key \
295-
--yes
296-
@$(MAKE) set-kubeconf
297-
298-
swiftv2-dummy-cluster-subnet-delegator-up: ipv4 ## Bring up a SWIFT AzCNI cluster for delegating subnet.
299291
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
300292
--network-plugin azure \
301293
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
302294
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/$(POD_SUBNET) \
295+
--tags stampcreatorserviceinfo=true \
303296
--load-balancer-outbound-ips $(PUBLIC_IPv4) \
304297
--no-ssh-key \
305298
--yes
@@ -465,7 +458,7 @@ linux-swiftv2-nodepool-up: ## Add linux node pool to swiftv2 cluster
465458
--os-type Linux \
466459
--max-pods 250 \
467460
--subscription $(SUB) \
468-
--tags fastpathenabled=true aks-nic-enable-multi-tenancy=true \
461+
--tags fastpathenabled=true aks-nic-enable-multi-tenancy=true stampcreatorserviceinfo=true\
469462
--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NetworkingMultiTenancyPreview \
470463
--pod-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/podnet
471464

0 commit comments

Comments
 (0)