Skip to content

Commit 55bf088

Browse files
committed
updates
1 parent 40e4dc1 commit 55bf088

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

hack/aks/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ VNET_PREFIX ?= 10.0.0.0/8
2323
SUBNET_PREFIX ?= 10.10.0.0/16
2424
POD_CIDR ?= 192.168.0.0/16
2525
SVC_CIDR ?= 192.168.10.0/16
26+
NODE_SUBNET_PREFIX ?= 10.240.0.0/16
27+
POD_SUBNET_PREFIX ?= 10.241.0.0/16
2628

2729
# overrideable variables
2830
SUB ?= $(AZURE_SUBSCRIPTION)
@@ -79,9 +81,9 @@ rg-down: ## Delete resource group
7981
$(AZCLI) group delete -g $(GROUP) --yes
8082

8183
swift-net-up: ## Create vnet, nodenet and podnet subnets
82-
$(AZCLI) network vnet create -g $(GROUP) -l $(REGION) --name $(VNET) --address-prefixes 10.0.0.0/8 -o none
83-
$(AZCLI) network vnet subnet create -g $(GROUP) --vnet-name $(VNET) --name nodenet --address-prefixes 10.240.0.0/16 -o none
84-
$(AZCLI) network vnet subnet create -g $(GROUP) --vnet-name $(VNET) --name podnet --address-prefixes 10.241.0.0/16 -o none
84+
$(AZCLI) network vnet create -g $(GROUP) -l $(REGION) --name $(VNET) --address-prefixes $(VNET_PREFIX) -o none
85+
$(AZCLI) network vnet subnet create -g $(GROUP) --vnet-name $(VNET) --name nodenet --address-prefixes $(NODE_SUBNET_PREFIX) -o none
86+
$(AZCLI) network vnet subnet create -g $(GROUP) --vnet-name $(VNET) --name podnet --address-prefixes $(POD_SUBNET_PREFIX) -o none
8587

8688
vnetscale-swift-net-up: ## Create vnet, nodenet and podnet subnets for vnet scale
8789
$(AZCLI) network vnet create -g $(GROUP) -l $(REGION) --name $(VNET) --address-prefixes 10.0.0.0/8 -o none

hack/scripts/cil-script.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# sufix1 - unique single digit whole number 1-9. Cannot match sufix2
44
# sufix2 - unique single digit whole number 1-9. Cannot match sufix1
55
# SUB - GUID for subscription
6-
# clusterType - overlay-byocni-nokubeproxy-up-mesh is primary atm, but leaving for testing later.
7-
# Example command: clusterPrefix=<alais> sufix1=1 sufix2=2 SUB=<GUID> clusterType=overlay-byocni-nokubeproxy-up-mesh ./cil-script.sh
6+
# clusterType - swift-byocni-nokubeproxy-up is primary atm, but leaving for testing later.
7+
# Example command: clusterPrefix=<alais> sufix1=1 sufix2=2 SUB=<GUID> clusterType=swift-byocni-nokubeproxy-up ./cil-script.sh
88

99
sufixes="${sufix1} ${sufix2}"
1010
install=helm
@@ -15,8 +15,10 @@ for unique in $sufixes; do
1515
make -C ./hack/aks $clusterType \
1616
AZCLI=az REGION=westus2 SUB=$SUB \
1717
CLUSTER=${clusterPrefix}-${unique} \
18-
POD_CIDR=192.${unique}0.0.0/16 SVC_CIDR=192.${unique}1.0.0/16 DNS_IP=192.${unique}1.0.10 \
19-
VNET_PREFIX=10.${unique}0.0.0/16 SUBNET_PREFIX=10.${unique}0.0.0/16
18+
KUBE_PROXY_JSON_PATH=./kube-proxy.json \
19+
VNET_PREFIX=10.${unique}0.0.0/16 \
20+
NODE_SUBNET_PREFIX=10.${unique}.1.0/24 \
21+
POD_SUBNET_PREFIX=10.${unique}.2.0/24
2022

2123
kubectl config use-context ${clusterPrefix}-${unique}
2224

@@ -68,4 +70,7 @@ cilium clustermesh status --context ${clusterPrefix}-${sufix2} --wait
6870

6971
# # CA is passed between clusters in this step
7072
cilium clustermesh connect --context ${clusterPrefix}-${sufix1} --destination-context ${clusterPrefix}-${sufix2}
73+
74+
# For 3+ clusters
75+
# cilium clustermesh connect --context ${clusterPrefix}-${sufix1} --destination-context ${clusterPrefix}-${sufix2} --connection-mode mesh
7176
# These can be run in parallel in different bash shells

0 commit comments

Comments
 (0)