Skip to content

Commit 7ac1887

Browse files
Merge pull request #244576 from James-Green-Microsoft/kuberenetes-extension-command-fixes
Fixes based on feedback
2 parents 1815e57 + 1424ae0 commit 7ac1887

File tree

1 file changed

+37
-47
lines changed

1 file changed

+37
-47
lines changed

articles/private-5g-core/commission-cluster.md

Lines changed: 37 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,6 @@ Additionally, if you go to the Azure portal and navigate to your **Azure Stack E
8686

8787
:::image type="content" source="media/commission-cluster/commission-cluster-ase-resource.png" alt-text="Screenshot of Azure Stack Edge resource in the Azure portal. Azure Kubernetes Service (PREVIEW) is shown under Edge services in the left menu.":::
8888

89-
## Enable high performance networking
90-
91-
Azure Private 5G Core requires high performance networking (HPN) to be enabled on Azure Stack Edge using a minishell command. You can continue to use the minishell session you started in [Enter a minishell session](#enter-a-minishell-session). Run the following command:
92-
93-
```powershell
94-
Invoke-Command -Session $minishellSession -ScriptBlock {Set-HcsNumaLpMapping -UseSkuPolicy}
95-
```
96-
97-
Wait for the machine to reboot if necessary (approximately 5 minutes).
98-
9989
## Set up advanced networking
10090

10191
You now need to configure virtual switches and virtual networks on those switches. You'll use the **Advanced networking** section of the Azure Stack Edge local UI to do this task.
@@ -140,7 +130,7 @@ You can input all the settings on this page before selecting **Apply** at the bo
140130
- If the subnet does not have a default gateway, use another IP address in the subnet which will respond to ARP requests (such as one of the RAN IP addresses). If there's more than one gNB connected via a switch, choose one of the IP addresses for the gateway.
141131
- **DNS server** and **DNS suffix** should be left blank.
142132
1. Select **Modify** to save the configuration for this virtual network.
143-
1. Select **Apply** at the bottom of the page and wait for the notification (a bell icon) to confirm that the settings have been applied. Applying the settings will take approximately 15 minutes.
133+
1. Select **Apply** at the bottom of the page and wait for the notification (a bell icon) to confirm that the settings have been applied. Applying the settings will take approximately 8 minutes.
144134
The page should now look like the following image:
145135

146136
:::image type="content" source="media/commission-cluster/commission-cluster-advanced-networking-ase-2.png" alt-text="Screenshot showing Advanced networking, with a table of virtual switch information and a table of virtual network information.":::
@@ -157,7 +147,7 @@ You can input all the settings on this page before selecting **Apply** at the bo
157147
- If the subnet does not have a default gateway, use another IP address in the subnet which will respond to ARP requests (such as one of the RAN IP addresses). If there's more than one gNB connected via a switch, choose one of the IP addresses for the gateway.
158148
- **DNS server** and **DNS suffix** should be left blank.
159149
1. Select **Modify** to save the configuration for this virtual network.
160-
1. Select **Apply** at the bottom of the page and wait for the notification (a bell icon) to confirm that the settings have been applied. Applying the settings will take approximately 15 minutes.
150+
1. Select **Apply** at the bottom of the page and wait for the notification (a bell icon) to confirm that the settings have been applied. Applying the settings will take approximately 8 minutes.
161151
The page should now look like the following image:
162152

163153
:::image type="content" source="media/commission-cluster/commission-cluster-advanced-networking.png" alt-text="Screenshot showing Advanced networking, with a table of virtual switch information and a table of virtual network information.":::
@@ -168,15 +158,15 @@ You can input all the settings on this page before selecting **Apply** at the bo
168158
In the local Azure Stack Edge UI, go to the **Kubernetes (Preview)** page. You'll set up all of the configuration and then apply it once, as you did in [Set up Advanced Networking](#set-up-advanced-networking).
169159

170160
1. Under **Compute virtual switch**, select **Modify**.
171-
1. Select the management vswitch (for example, *vswitch-port2*)
161+
1. Select the vswitch with compute intent (for example, *vswitch-port2*)
172162
1. Enter six IP addresses in a range for the node IP addresses on the management network.
173163
1. Enter one IP address in a range for the service IP address, also on the management network.
174164
1. Select **Modify** at the bottom of the panel to save the configuration.
175165
1. Under **Virtual network**, select a virtual network (from **N2**, **N3**, **N6-DN1**, **N6-DN2**, and **N6-DN3**). In the side panel:
176166
1. Enable the virtual network for Kubernetes and add a pool of IP addresses. Add a range of one IP address for the appropriate address (N2, N3, N6-DN1, N6-DN2 or N6-DN3 as collected earlier. For example, *10.10.10.20-10.10.10.20*.
177167
1. Repeat for each of the N2, N3, N6-DN1, N6-DN2, and N6-DN3 virtual networks.
178168
1. Select **Modify** at the bottom of the panel to save the configuration.
179-
1. Select **Apply** at the bottom of the page and wait for the settings to be applied. Applying the settings will take approximately 15 minutes.
169+
1. Select **Apply** at the bottom of the page and wait for the settings to be applied. Applying the settings will take approximately 5 minutes.
180170

181171
The page should now look like the following image:
182172

@@ -284,12 +274,12 @@ The Azure Private 5G Core private mobile network requires a custom location and
284274
1. Set the following environment variables using the required values for your deployment:
285275
286276
```azurecli
287-
export SUBSCRIPTION_ID=<subscription ID>
288-
export RESOURCE_GROUP_NAME=<resource group name>
289-
export LOCATION=<deployment region, for example eastus>
290-
export CUSTOM_LOCATION=<custom location for the AKS cluster>
291-
export RESOURCE_NAME=<resource name>
292-
export TEMP_FILE=./tmpfile
277+
$SUBSCRIPTION_ID=<subscription ID>
278+
$RESOURCE_GROUP_NAME=<resource group name>
279+
$LOCATION=<deployment region, for example eastus>
280+
$CUSTOM_LOCATION=<custom location for the AKS cluster>
281+
$ARC_CLUSTER_RESOURCE_NAME=<resource name>
282+
$TEMP_FILE=./tmpfile
293283
```
294284
295285
1. Prepare your shell environment:
@@ -301,7 +291,7 @@ The Azure Private 5G Core private mobile network requires a custom location and
301291
1. Create the Network Function Operator Kubernetes extension:
302292
303293
```azurecli
304-
cat > $TEMP_FILE <<EOF
294+
Add-Content -Path $TEMP_FILE -Value @"
305295
{
306296
"helm.versions": "v3",
307297
"Microsoft.CustomLocation.ServiceAccount": "azurehybridnetwork-networkfunction-operator",
@@ -312,44 +302,44 @@ The Azure Private 5G Core private mobile network requires a custom location and
312302
"helm.release-namespace": "azurehybridnetwork",
313303
"managed-by": "helm"
314304
}
315-
EOF
316-
317-
az k8s-extension create \
318-
--name networkfunction-operator \
319-
--cluster-name "$RESOURCE_NAME" \
320-
--resource-group "$RESOURCE_GROUP_NAME" \
321-
--cluster-type connectedClusters \
322-
--extension-type "Microsoft.Azure.HybridNetwork" \
323-
--auto-upgrade-minor-version "true" \
324-
--scope cluster \
325-
--release-namespace azurehybridnetwork \
326-
--release-train preview \
305+
"@
306+
307+
az k8s-extension create `
308+
--name networkfunction-operator `
309+
--cluster-name "$ARC_CLUSTER_RESOURCE_NAME" `
310+
--resource-group "$RESOURCE_GROUP_NAME" `
311+
--cluster-type connectedClusters `
312+
--extension-type "Microsoft.Azure.HybridNetwork" `
313+
--auto-upgrade-minor-version "true" `
314+
--scope cluster `
315+
--release-namespace azurehybridnetwork `
316+
--release-train preview `
327317
--config-settings-file $TEMP_FILE
328318
```
329319
330320
1. Create the Packet Core Monitor Kubernetes extension:
331321
332322
```azurecli
333-
az k8s-extension create \
334-
--name packet-core-monitor \
335-
--cluster-name "$RESOURCE_NAME" \
336-
--resource-group "$RESOURCE_GROUP_NAME" \
337-
--cluster-type connectedClusters \
338-
--extension-type "Microsoft.Azure.MobileNetwork.PacketCoreMonitor" \
339-
--release-train stable \
323+
az k8s-extension create `
324+
--name packet-core-monitor `
325+
--cluster-name "$ARC_CLUSTER_RESOURCE_NAME" `
326+
--resource-group "$RESOURCE_GROUP_NAME" `
327+
--cluster-type connectedClusters `
328+
--extension-type "Microsoft.Azure.MobileNetwork.PacketCoreMonitor" `
329+
--release-train stable `
340330
--auto-upgrade true
341331
```
342332
343333
1. Create the custom location:
344334
345335
```azurecli
346-
az customlocation create \
347-
-n "$CUSTOM_LOCATION" \
348-
-g "$RESOURCE_GROUP_NAME" \
349-
--location "$LOCATION" \
350-
--namespace azurehybridnetwork \
351-
--host-resource-id "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Kubernetes/connectedClusters/$RESOURCE_NAME" \
352-
--cluster-extension-ids "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Kubernetes/connectedClusters/$RESOURCE_NAME/providers/Microsoft.KubernetesConfiguration/extensions/networkfunction-operator"
336+
az customlocation create `
337+
-n "$CUSTOM_LOCATION" `
338+
-g "$RESOURCE_GROUP_NAME" `
339+
--location "$LOCATION" `
340+
--namespace azurehybridnetwork `
341+
--host-resource-id "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Kubernetes/connectedClusters/$ARC_CLUSTER_RESOURCE_NAME" `
342+
--cluster-extension-ids "/subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP_NAME/providers/Microsoft.Kubernetes/connectedClusters/$ARC_CLUSTER_RESOURCE_NAME/providers/Microsoft.KubernetesConfiguration/extensions/networkfunction-operator"
353343
```
354344
355345
You should see the new **Custom location** visible as a resource in the Azure portal within the specified resource group. Using the `kubectl get pods -A` command (with access to your *kubeconfig* file) should also show new pods corresponding to the extensions that have been installed. There should be one pod in the *azurehybridnetwork* namespace, and one in the *packet-core-monitor* namespace.

0 commit comments

Comments
 (0)