Skip to content

Commit

Permalink
created 76_
Browse files Browse the repository at this point in the history
  • Loading branch information
Houssem Dellai committed Oct 19, 2023
1 parent b4e661b commit 1d86801
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions 76_migrate_lb_to_natgateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,7 @@ az network public-ip create -g $RG -n pip-natgateway --sku standard
az network nat gateway create -g $RG -n nat-gateway --public-ip-addresses pip-natgateway
```

### 2.2. Associate nat gateway with subnet where the workload is associated with.

```bash
az network vnet subnet update -g $RG --vnet-name vnet-aks --name subnet-aks --nat-gateway nat-gateway
```

### 2.3. Update cluster from loadBalancer to userAssignedNATGateway in BYO vnet scenario

```bash
az aks update -g $RG -n aks-cluster --outbound-type userAssignedNATGateway
```

Now the NAT Gateway is configured for your AKS cluster.

![](images/resources.png)
### 2.2. Watch for downtime for egress traffic

Run this command in new powershell session for watch for the downtime of egress traffic.

Expand All @@ -116,7 +102,23 @@ for ($i = 0; $i -lt 30; $i++) {
# 13.93.68.197
```

It takes about 6 minutes to update the outboundType from LB to user NAT Gateway.
### 2.3. Associate nat gateway with subnet where the workload is associated with.

```bash
az network vnet subnet update -g $RG --vnet-name vnet-aks --name subnet-aks --nat-gateway nat-gateway
```

### 2.4. Update cluster from loadBalancer to userAssignedNATGateway in BYO vnet scenario

```bash
az aks update -g $RG -n aks-cluster --outbound-type userAssignedNATGateway
```

Now the NAT Gateway is configured for your AKS cluster.

![](images/resources.png)

>It takes about 6 minutes to update the outboundType from Load Balancer to user NAT Gateway.

Note the new IP address of the NAT Gateway used for egress/outbound traffic.

Expand Down

0 comments on commit 1d86801

Please sign in to comment.