@@ -27,42 +27,41 @@ vNET, and finally the AKS-Hybrid cluster that will host the CNF.
27
27
## Common parameters
28
28
29
29
``` bash
30
- export myloc=" eastus"
31
- export myrg=" ****"
32
- export MSYS_NO_PATHCONV=1
33
- export mysub=" ******"
34
- export mynfid=' ******'
35
- export myplatcustloc=' ******'
36
- export myhakscustloc=' ******'
30
+ export DC_LOCATION=" eastus"
31
+ export RESOURCE_GROUP=" ****"
32
+ export SUBSCRIPTION=" ******"
33
+ export CUSTOM_LOCATION=' ******'
34
+ export HAKS_CUSTOM_LOCATION=' ******'
35
+ export L3_ISD=' ******'
37
36
```
38
37
39
38
## Initialization
40
39
41
- Set ` $mysub ` as the active subscription for your Operator Nexus instance.
40
+ Set ` $SUBSCRIPTION ` as the active subscription for your Operator Nexus instance.
42
41
43
42
``` azurecli
44
- az account set --subscription "$mysub "
43
+ az account set --subscription "$SUBSCRIPTION "
45
44
```
46
45
47
- Get list of ` internalnetworks ` in the L3 isolation-domain ` $myl3isd `
46
+ Get list of ` internalnetworks ` in the L3 isolation-domain ` $L3_ISD `
48
47
49
48
``` azurecli
50
- az nf internalnetwork list --l3domain "$myl3isd " \
51
- -g "$myrg " --subscription "$mysub "
49
+ az nf internalnetwork list --l3domain "$L3_ISD " \
50
+ -g "$RESOURCE_GROUP " --subscription "$SUBSCRIPTION "
52
51
```
53
52
54
53
## Create Cloud Services Network
55
54
56
55
``` bash
57
- export mycsn =" ******"
56
+ export CLOUD_SERVICES_NETWORK =" ******"
58
57
```
59
58
60
59
``` azurecli
61
- az networkcloud cloudservicesnetwork create --name "$mycsn " \
62
- --resource-group "$myrg " \
63
- --subscription "$mysub " \
64
- --extended-location name="$myplatcustloc " type="CustomLocation" \
65
- --location "$myloc " \
60
+ az networkcloud cloudservicesnetwork create --name "$CLOUD_SERVICES_NETWORK " \
61
+ --resource-group "$RESOURCE_GROUP " \
62
+ --subscription "$SUBSCRIPTION " \
63
+ --extended-location name="$CUSTOM_LOCATION " type="CustomLocation" \
64
+ --location "$DC_LOCATION " \
66
65
--additional-egress-endpoints '[{
67
66
"category": "azure-resource-management",
68
67
"endpoints": [{
@@ -100,95 +99,94 @@ az networkcloud cloudservicesnetwork create --name "$mycsn" \
100
99
### Validate Cloud Services Network has been created
101
100
102
101
``` azurecli
103
- az networkcloud cloudservicesnetwork show --name "$mycsn " --resource-group "$myrg " --subscription "$mysub " -o table
102
+ az networkcloud cloudservicesnetwork show --name "$CLOUD_SERVICES_NETWORK " --resource-group "$RESOURCE_GROUP " --subscription "$SUBSCRIPTION " -o table
104
103
```
105
104
106
105
## Create Default CNI Network
107
106
108
107
``` bash
109
- export myl3n==" ******"
110
- export myalloctype=" IPV4"
111
- export myvlan=****
112
- export myipv4sub==" ******"
113
- export mymtu=" 9000"
114
- export myl3isdarm==" ******"
108
+ export DCN_NAME=" ******"
109
+ export IP_ALLOCATION_TYPE=" IPV4"
110
+ export VLAN=****
111
+ export IPV4_SUBNET=" ******"
112
+ export L3_ISD_ARM=" ******"
115
113
```
116
114
117
115
``` azurecli
118
- az networkcloud defaultcninetwork create --name "$myl3n " \
119
- --resource-group "$myrg " \
120
- --subscription "$mysub " \
121
- --extended-location name="$myplatcustloc " type="CustomLocation" \
122
- --location "$myloc " \
116
+ az networkcloud defaultcninetwork create --name "$DCN_NAME " \
117
+ --resource-group "$RESOURCE_GROUP " \
118
+ --subscription "$SUBSCRIPTION " \
119
+ --extended-location name="$CUSTOM_LOCATION " type="CustomLocation" \
120
+ --location "$DC_LOCATION " \
123
121
--bgp-peers '[]' \
124
122
--community-advertisements '[{"communities": ["65535:65281", "65535:65282"], "subnetPrefix": "10.244.0.0/16"}]' \
125
123
--service-external-prefixes '["10.101.65.0/24"]' \
126
124
--service-load-balancer-prefixes '["10.101.66.0/24"]' \
127
- --ip-allocation-type "$myalloctype " \
128
- --ipv4-connected-prefix "$myipv4sub " \
129
- --l3-isolation-domain-id "$myl3isdarm " \
130
- --vlan $myvlan
125
+ --ip-allocation-type "$IP_ALLOCATION_TYPE " \
126
+ --ipv4-connected-prefix "$IPV4_SUBNET " \
127
+ --l3-isolation-domain-id "$L3_ISD_ARM " \
128
+ --vlan $VLAN
131
129
```
132
130
133
131
### Validate Default CNI Network has been created
134
132
135
133
``` azurecli
136
- az networkcloud defaultcninetwork show --name "$myl3n " \
137
- --resource-group "$myrg " --subscription "$mysub " -o table
134
+ az networkcloud defaultcninetwork show --name "$DCN_NAME " \
135
+ --resource-group "$RESOURCE_GROUP " --subscription "$SUBSCRIPTION " -o table
138
136
```
139
137
140
138
## Set AKS-Hybrid Extended Location
141
139
142
140
``` bash
143
- export myhakscustloc= =" ******"
141
+ export HAKS_CUSTOM_LOCATION =" ******"
144
142
```
145
143
146
144
## Create AKS-Hybrid Network Cloud Services Network vNET
147
145
148
146
The AKS-Hybrid (HAKS) Virtual Networks are different from the Azure to on-premises Virtual Networks.
149
147
150
148
``` bash
151
- export myhaksvnetname= =" ******"
152
- export myncnw= =" ******"
149
+ export HAKS_VNET_NAME =" ******"
150
+ export NC_NETWORK =" ******"
153
151
```
154
152
155
153
``` azurecli
156
154
az hybridaks vnet create \
157
- --name "$myhaksvnetname " \
158
- --resource-group "$myrg " \
159
- --subscription "$mysub " \
160
- --custom-location "$myhakscustloc " \
161
- --aods-vnet-id "$myncnw "
155
+ --name "$HAKS_VNET_NAME " \
156
+ --resource-group "$RESOURCE_GROUP " \
157
+ --subscription "$SUBSCRIPTION " \
158
+ --custom-location "$HAKS_CUSTOM_LOCATION " \
159
+ --aods-vnet-id "$NC_NETWORK "
162
160
```
163
161
164
162
## Create AKS-Hybrid Cluster
165
163
166
164
The AKS-Hybrid (HAKS) cluster will be used to host the CNF.
167
165
168
166
``` bash
169
- export myhaksvnet1= =" ******"
170
- export myhaksvnet2= =" ******"
171
- export myencodedkey= =" ******"
172
- export =" ******"
173
- export myclustername= =" ******"
167
+ export HAKS_VNET_1 =" ******"
168
+ export HAKS_VNET_2 =" ******"
169
+ export ENCODED_KEY =" ******"
170
+ export AAD_ID =" ******"
171
+ export HAKS_CLUSTER_NAME =" ******"
174
172
```
175
173
176
174
``` azurecli
177
175
az hybridaks create \
178
- --name "$myclustername " \
179
- --resource-group "$myrg " \
180
- --subscription "$mysub " \
181
- --aad-admin-group-object-ids "$AADID " \
182
- --custom-location "$myhakscustloc " \
176
+ --name "$HAKS_CLUSTER_NAME " \
177
+ --resource-group "$RESOURCE_GROUP " \
178
+ --subscription "$SUBSCRIPTION " \
179
+ --aad-admin-group-object-ids "$AAD_ID " \
180
+ --custom-location "$HAKS_CUSTOM_LOCATION " \
183
181
--location eastus \
184
182
--control-plane-vm-size NC_G4_v1 \
185
183
--node-vm-size NC_H16_v1 \
186
184
--kubernetes-version v1.22.11 \
187
185
--load-balancer-sku stacked-kube-vip \
188
186
--load-balancer-count 0 \
189
187
--load-balancer-vm-size '' \
190
- --vnet-ids "$myhaksvnet1 ","$myhaksvnet2 " \
191
- --ssh-key-value "$myencodedkey " \
188
+ --vnet-ids "$HAKS_VNET_1 ","$HAKS_VNET_2 " \
189
+ --ssh-key-value "$ENCODED_KEY " \
192
190
--control-plane-count 3 \
193
191
--node-count 4
194
192
```
0 commit comments