You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Use this tutorial to learn how to configure routing preference for an Azure Kubernetes Service.
5
5
author: mbender-ms
6
6
ms.author: mbender
7
-
ms.date: 08/24/2023
7
+
ms.date: 08/12/2024
8
8
ms.service: azure-virtual-network
9
9
ms.subservice: ip-services
10
10
ms.topic: tutorial
@@ -30,28 +30,28 @@ In this tutorial, you learn how to:
30
30
31
31
## Create a resource group
32
32
33
-
Create a resource group with the [az group create](/cli/azure/group#az-group-create) command. The following example creates a resource group in the **East US** Azure region:
33
+
Create a resource group with the [az group create](/cli/azure/group#az-group-create) command. The following example creates a resource group in the **West Europe** Azure region:
34
34
35
35
```azurecli-interactive
36
36
az group create \
37
37
--name TutorAKSRP-rg \
38
-
--location eastus
38
+
--location westeurope
39
39
40
40
```
41
41
42
42
## Create public IP with Internet routing preference
43
43
44
44
Create a public IP address with routing preference of **Internet** type using command [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create).
45
45
46
-
The following command creates a new public IP with **Internet** routing preference in the **East US** Azure region.
46
+
The following command creates a new public IP with **Internet** routing preference in the **West Europe** Azure region.
47
47
48
48
```azurecli-interactive
49
49
az network public-ip create \
50
-
--resource-group TutorAKSRP-rg \
51
50
--name myPublicIP-IR \
52
-
--version IPv4 \
51
+
--resource-group TutorAKSRP-rg \
53
52
--ip-tags 'RoutingPreference=Internet' \
54
53
--sku Standard \
54
+
--version IPv4 \
55
55
--zone 1 2 3
56
56
```
57
57
> [!NOTE]
@@ -88,7 +88,7 @@ The following command creates the Kubernetes cluster and uses the variable for t
88
88
89
89
To validate, search for the public IP created in the earlier step in Azure portal. The public IP is associated with the load balancer. The load balancer is associated with the Kubernetes cluster as shown below:
90
90
91
-
:::image type="content" source="./media/routing-preference-azure-kubernetes-service-cli/verify-aks-ip.png" alt-text="Screenshot of AKS cluster public IP address.":::
91
+
:::image type="content" source="./media/routing-preference-azure-kubernetes-service-cli/verify-aks-ip.png" alt-text="Screenshot of AKS cluster public IP address." lightbox="./media/routing-preference-azure-kubernetes-service-cli/verify-aks-ip.png":::
0 commit comments