|
| 1 | +--- |
| 2 | +title: Load balancer migration guidelines in Azure HDInsight on AKS |
| 3 | +description: Guidelines to perform load balancer migration in Azure HDInsight on AKS |
| 4 | +ms.service: azure-hdinsight |
| 5 | +ms.topic: how-to |
| 6 | +ms.date: 09/25/2024 |
| 7 | +--- |
| 8 | + |
| 9 | +# Load balancer migration guidelines |
| 10 | + |
| 11 | + |
| 12 | +This article describes the details about the impact on HDInsight clusters and the necessary steps required as HDInsight service is transitioning to use standard load balancers for all its cluster configurations. |
| 13 | + |
| 14 | +This transition is done in line with the announcement of retirement of Azure basic load balancer by 30 September 2025 and no support for new deployment by Mar 31, 2025. For more information, see [Azure Basic Load Balancer retires on 30 September 2025. Upgrade to Standard Load Balancer](https://azure.microsoft.com/en-us/updates/azure-basic-load-balancer-will-be-retired-on-30-september-2025-upgrade-to-standard-load-balancer). |
| 15 | + |
| 16 | +## Impact on HDInsight clusters |
| 17 | + |
| 18 | +### Scenario 1: Long running clusters (when you don’t create and delete cluster daily for your use case) |
| 19 | + |
| 20 | +**Case 1:** When HDInsight clusters are already created without custom virtual network. (No virtual network provided during cluster creation.) |
| 21 | + |
| 22 | +No immediate disruption until Mar 31, 2025. However, we strongly recommend re-creating the cluster before Mar 31, 2025 to avoid potential disruption. |
| 23 | + |
| 24 | +**Case 2:** When HDInsight clusters are already created with custom virtual network, no immediate disruption until Mar 31, 2025. However, we strongly recommend re-creating the cluster by Mar 31, 2025 to avoid potential disruption. |
| 25 | + |
| 26 | +### Scenario 2: New clusters creation |
| 27 | + |
| 28 | +**Case 1:** When HDInsight clusters already created without custom virtual network. (No virtual network provided during cluster creation.) |
| 29 | + |
| 30 | +In this case, no impact. You can recreate the cluster directly. |
| 31 | + |
| 32 | +**Case 2:** When HDInsight clusters are created with custom virtual network |
| 33 | + |
| 34 | +In this case, there are two options to create a cluster |
| 35 | + |
| 36 | +**Approach 1:** Create the cluster with a new subnet |
| 37 | + |
| 38 | +1. Choose the outbound connectivity for your cluster Follow this doc [Use Source Network Address Translation (SNAT) for outbound connections](/azure/load-balancer/load-balancer-outbound-connections), and choose one method to provide outbound connectivity for the new cluster. The most recommended way is to attach a NAT gateway and a Network Security Group (NSG) to the subnet. |
| 39 | + |
| 40 | +1. (Optional) Create a new NAT gateway and a new network security group (NSG). |
| 41 | + |
| 42 | + > [!NOTE] |
| 43 | + > You can associate an existing NAT gateway and NSG or the newly created ones. |
| 44 | + > |
| 45 | + > Follow the docs [Quickstart: Create a NAT gateway - Azure portal](/azure/nat-gateway/quickstart-create-nat-gateway-portal), and [Create, change, or delete an Azure network security group](/azure/virtual-network/manage-network-security-group?tabs=network-security-group-portal#create-a-network-security-group) to create a new NAT gateway and a new network security group. |
| 46 | + > |
| 47 | + > You can refer to the doc [Control network traffic in Azure HDInsight](./hdinsight/control-network-traffic.md#hdinsight-with-network-security-groups) to set up correct NSG rules. |
| 48 | + |
| 49 | +1. Create a new subnet and associate the subnet with the NAT gateway and network security group. |
| 50 | + |
| 51 | + :::image type="content" source="./media/load-balancer-migration-guidelines/create-subnet.png" alt-text="Screenshot showing how to create a subnet." border="true" lightbox="./media/load-balancer-migration-guidelines/create-subnet.png"::: |
| 52 | + |
| 53 | + > [!NOTE] |
| 54 | + > If you are unable to find the NAT gateway, see, [FAQ of the NAT gateway (Azure NAT Gateway frequently asked questions](/azure/nat-gateway/faq#are-basic-sku-resources--basic-load-balancer-and-basic-public-ip-addresses--compatible-with-a-nat-gateway). |
| 55 | +
|
| 56 | +1. Create a new cluster with the subnet. |
| 57 | + |
| 58 | + :::image type="content" source="./media/load-balancer-migration-guidelines/create-hdinsight-cluster.png" alt-text="Screenshot showing how to create a HDInsight cluster." border="true" lightbox="./media/load-balancer-migration-guidelines/create-hdinsight-cluster.png"::: |
| 59 | + |
| 60 | +**Approach 2: Use the existing subnet** |
| 61 | + |
| 62 | +To upgrade your existing custom virtual network to integrate Azure standard load balancer (which is HDInsight clusters use by default), see, [Use Source Network Address Translation (SNAT) for outbound connections](/azure/load-balancer/load-balancer-outbound-connections) to provide outbound connectivity for the cluster. The most recommended way is to attach a network security group and a NAT gateway to the subnet. Since the existing subnet which has HDInsight clusters with Azure basic load balancers can't be associated with an NAT gateway due to incompatibility with basic load balancer, there are two scenarios: |
| 63 | + |
| 64 | +Scenario 1: Existing subnet has no HDInsight clusters with Azure basic load balancer |
| 65 | + |
| 66 | +1. (Optional) Create a new NAT gateway and a new network security group. |
| 67 | + |
| 68 | + > [!NOTE] |
| 69 | + > You could associate an existing NAT gateway and NSG or the newly created ones. |
| 70 | + > Follow the docs [Quickstart: Create a NAT gateway - Azure portal](/azure/nat-gateway/quickstart-create-nat-gateway-portal), and [Create, change, or delete an Azure network security group](/azure/virtual-network/manage-network-security-group?tabs=network-security-group-portal#create-a-network-security-group) to create a new NAT gateway and a new network security group. |
| 71 | + > |
| 72 | + > You can refer to the doc [Control network traffic in Azure HDInsight](./hdinsight/control-network-traffic.md#hdinsight-with-network-security-groups) to set up correct NSG rules. |
| 73 | + |
| 74 | +1. Associate the NAT gateway with your subnet along with a network security group. |
| 75 | + |
| 76 | + :::image type="content" source="./media/load-balancer-migration-guidelines/associate-gateway.png" alt-text="Screenshot showing how to associate gateway." border="true" lightbox="./media/load-balancer-migration-guidelines/associate-gateway.png"::: |
| 77 | + |
| 78 | +1. Create the cluster with the subnet. |
| 79 | + |
| 80 | + |
| 81 | + :::image type="content" source="./media/load-balancer-migration-guidelines/security-networking.png" alt-text="Screenshot showing security networking tab." border="true" lightbox="./media/load-balancer-migration-guidelines/security-networking.png"::: |
| 82 | + |
| 83 | + > [!NOTE] |
| 84 | + > If you are unable to find the NAT gateway, see, [FAQ of the NAT gateway (Azure NAT Gateway frequently asked questions](/azure/nat-gateway/faq#are-basic-sku-resources--basic-load-balancer-and-basic-public-ip-addresses--compatible-with-a-nat-gateway). |
| 85 | +
|
| 86 | +## Scenario 2: The existing subnet has HDInsight clusters with basic load balancers. |
| 87 | + |
| 88 | +Approach 1: The most recommended way is to associate a NAT gateway to the subnet along with Network security group. |
| 89 | + |
| 90 | +According to [Azure NAT Gateway frequently asked questions](/azure/nat-gateway/faq#are-basic-sku-resources--basic-load-balancer-and-basic-public-ip-addresses--compatible-with-a-nat-gateway), the subnet with NAT gateway and Azure standard load balancer isn't compatible. |
| 91 | + |
| 92 | +To associate with a NAT Gateway, perform the following steps. |
| 93 | + |
| 94 | +1. Delete all the existing HDInsight clusters with Azure basic load balancers in this subnet. |
| 95 | + |
| 96 | +1. (Optional) Create a new NAT gateway and a new network security group. |
| 97 | + |
| 98 | + > [!NOTE] |
| 99 | + > You could associate an existing NAT gateway and NSG or the newly created ones. |
| 100 | + > Follow the docs [Quickstart: Create a NAT gateway - Azure portal](/azure/nat-gateway/quickstart-create-nat-gateway-portal), and [Create, change, or delete an Azure network security group](/azure/virtual-network/manage-network-security-group?tabs=network-security-group-portal#create-a-network-security-group) to create a new NAT gateway and a new network security group. |
| 101 | + > |
| 102 | + > You can refer to the doc [Control network traffic in Azure HDInsight](./hdinsight/control-network-traffic.md#hdinsight-with-network-security-groups) to set up correct NSG rules. |
| 103 | +
|
| 104 | +1. Associate the subnet with the NAT gateway and network security group. |
| 105 | + |
| 106 | + |
| 107 | + :::image type="content" source="./media/load-balancer-migration-guidelines/add-subnet.png" alt-text="Screenshot showing how to add subnet." border="true" lightbox="./media/load-balancer-migration-guidelines/add-subnet.png"::: |
| 108 | + |
| 109 | + > [!NOTE] |
| 110 | + > If you are unable to find the NAT gateway, see, [FAQ of the NAT gateway (Azure NAT Gateway frequently asked questions](/azure/nat-gateway/faq#are-basic-sku-resources--basic-load-balancer-and-basic-public-ip-addresses--compatible-with-a-nat-gateway). |
| 111 | +
|
| 112 | +1. Re-create the clusters with the subnet. |
| 113 | + |
| 114 | + |
| 115 | + :::image type="content" source="./media/load-balancer-migration-guidelines/viritual-network.png" alt-text="Screenshot showing virtual network." border="true" lightbox="./media/load-balancer-migration-guidelines/viritual-network.png"::: |
| 116 | + |
| 117 | +**Approach 2:** Select option other than **Associate a NAT gateway to the subnet** provided in [Use Source Network Address Translation (SNAT) for outbound connections](/azure/load-balancer/load-balancer-outbound-connections), and follow the instruction for the selected option. |
| 118 | + |
| 119 | +**Approach 3:** Create a new subnet and then create the cluster with the new subnet. |
| 120 | + |
| 121 | + |
| 122 | + |
0 commit comments