Upgrading AKS version with blue-green deployment(II)

Published Jul 08 2021 02:24 AM 3,464 Views
Microsoft

Application deployment

Let's deploy a demo app to verify that the app gateway and the AKS cluster have been successfully integrated. Copy the following YAML file and save it as deployment_aspnet.yaml.

 

apiVersion: apps/v1
kind: Deployment
metadata:
  name: aspnetapp
spec:
  replicas: 3
  selector:
    matchLabels:
      app: aspnetapp
  template:
    metadata:
      labels:
        app: aspnetapp
    spec:
      containers:
        - name: aspnetapp
          # Sample ASP.Net application from Microsoft which can get private IP.
          image: mcr.microsoft.com/dotnet/core/samples:aspnetapp
          ports:
          - containerPort: 80
---

apiVersion: v1
kind: Service
metadata:
  name: aspnetapp
spec:
  selector:
    app: aspnetapp
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80

---

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: aspnetapp
  annotations:
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: aspnetapp
          servicePort: 80

 

Let’s deploy the application.

 

 

kubectl apply -f deployment_aspnet.yaml

 

 

Now we can list the pods and verify our deployment is running.

 

 

kubectl get po -o wide
NAME                                    READY   STATUS    RESTARTS   AGE    IP            NODE                                NOMINATED NODE   READINESS GATES
aad-pod-identity-mic-787c5958fd-kmx9b   1/1     Running   0          177m   10.240.0.33   aks-nodepool1-94448771-vmss000000   <none>           <none>
aad-pod-identity-mic-787c5958fd-nkpv4   1/1     Running   0          177m   10.240.0.63   aks-nodepool1-94448771-vmss000001   <none>           <none>
aad-pod-identity-nmi-mhp86              1/1     Running   0          177m   10.240.0.4    aks-nodepool1-94448771-vmss000000   <none>           <none>
aad-pod-identity-nmi-sjpvw              1/1     Running   0          177m   10.240.0.35   aks-nodepool1-94448771-vmss000001   <none>           <none>
aad-pod-identity-nmi-xnfxh              1/1     Running   0          177m   10.240.0.66   aks-nodepool1-94448771-vmss000002   <none>           <none>
agic-ingress-azure-84967fc5b6-cqcn4     1/1     Running   0          111m   10.240.0.79   aks-nodepool1-94448771-vmss000002   <none>           <none>
aspnetapp-68784d6544-j99qg              1/1     Running   0          96    10.240.0.75   aks-nodepool1-94448771-vmss000002   <none>           <none>
aspnetapp-68784d6544-v9449              1/1     Running   0          96    10.240.0.13   aks-nodepool1-94448771-vmss000000   <none>           <none>
aspnetapp-68784d6544-ztbd9              1/1     Running   0          96    10.240.0.50   aks-nodepool1-94448771-vmss000001   <none>           <none>

 

 

We can see that the pods of the app are working correctly. Note that their IPs are 10.240.0.13, 10.240.0.50, and 10.240.0.75.

The app gateway backend can be seen as the IP above.  

 

 

az network application-gateway show-backend-health \
 -g $RESOURCE_GROUP \
 -n $APP_GATEWAY \
 --query backendAddressPools[].backendHttpSettingsCollection[].servers[][address,health]
-o tsv
10.240.0.13     Healthy
10.240.0.50     Healthy
10.240.0.75     Healthy

 

 

Check the I P address on the front end.

 

 

az network public-ip show -g $RESOURCE_GROUP -n $APPGW_IP --query ipAddress -o tsv

 

 

Then access this IP with a browser and you'll see it.

snowpeak_0-1625734724808.png

Refresh a few more times, and Host name and Server IP address display 3 host names and IPs in turns, which are the 3 pod names and intranet IPs of the pods we deployed earlier. This shows that pods integration in the application gateway and AKS has been successfully implemented.

Deploy a new cluster of AKS

Create a new version of the AKS cluster

Let’s create a new AKS clusters in the subnet where the existing AKS is located. Our previous version of AKS uses the current default version of1.19.11. The new AKS cluster uses 1.20.7, and all the other parameters remain unchanged.

Let’s declare a variable for the name of the new AKS cluster.

AKS_NEW=new

Gets the ID of the subnet where the new cluster is located.

NEW_AKS_SUBNET_ID=$(az network vnet subnet show -g $RESOURCE_GROUP --vnet-name $VNET_NAME --name $NEW_AKS_SUBNET --query id -o tsv)

Create a new AKS cluster.

 

az aks create -n $AKS_NEW \
-g $RESOURCE_GROUP \
-l $AZ_REGION \
--generate-ssh-keys \
--network-plugin azure \
--enable-managed-identity \
--vnet-subnet-id $NEW_AKS_SUBNET_ID \
--kubernetes-version 1.20.7

 

 

We also installs application-gateway-kubernetes-ingress in the new AKS cluster with Helm.  

Install Pod Identify in the new version of the AKS cluster

Connect to the AKS cluster.

 

 

az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_NEW

 

 

Install AAD Pod Identify

 

 

kubectl create serviceaccount --namespace kube-system tiller-sa
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller-sa
helm repo add aad-pod-identity https://raw.githubusercontent.com/Azure/aad-pod-identity/master/charts
helm install aad-pod-identity aad-pod-identity/aad-pod-identity

 

 

Install Application Gateway Ingress Controller with helm.

 

 

helm repo add application-gateway-kubernetes-ingress https://appgwingress.blob.core.windows.net/ingress-azure-helm-package/
helm repo update

 

 

Deploy apps on the new version of the AKS cluster

We install the same app in the new AKS cluster.  

 

 

kubectl apply -f deployment_aspnet.yaml

 

 

Once the app is deployed, list pods.

 

 

kubectl get po -o=custom-columns=NAME:.metadata.name,\
podIP:.status.podIP,NODE:.spec.nodeName,\
READY-true:.status.containerStatuses[*].ready

NAME                                    podIP          NODE                                READY-true
aad-pod-identity-mic-644c7c9f6-cqkxr   10.241.0.25   aks-nodepool1-20247409-vmss000000   true
aad-pod-identity-mic-644c7c9f6-xpwlt   10.241.0.67   aks-nodepool1-20247409-vmss000002   true
aad-pod-identity-nmi-k2c8s             10.241.0.35   aks-nodepool1-20247409-vmss000001   true
aad-pod-identity-nmi-vqqzq             10.241.0.66   aks-nodepool1-20247409-vmss000002   true
aad-pod-identity-nmi-xvcxm             10.241.0.4    aks-nodepool1-20247409-vmss000000   true
aspnetapp-5844845bdc-82lcw             10.241.0.33   aks-nodepool1-20247409-vmss000000   true
aspnetapp-5844845bdc-hskvg             10.241.0.43   aks-nodepool1-20247409-vmss000001   true
aspnetapp-5844845bdc-qzt7f             10.241.0.84   aks-nodepool1-20247409-vmss000002   true

 

 

In the actual production operations process, after deploying a good app, we do not associate to the existing application gateway directly. Instead, we remotely log on and test through private network access.

 

 

kubectl run -it --rm aks-ssh --image=mcr.microsoft.com/aks/fundamental/base-ubuntu:v0.0.11

 

 

Once the container is started, it goes straight into the container, and we visit the three intranet IPs mentioned above --10.241.0.33, 10.241.0.43, 10.241.0.84. For example,

 

 

root@aks-ssh:/# curl http://10.241.0.33
root@aks-ssh:/# curl http://10.241.0.43
root@aks-ssh:/# curl http://10.241.0.84

 

 

We see that all can return content normally. This can used to simulate the new environment has been tested and passed, and finally the new AKS cluster is associated with the existing application gateway.

Switching the app gateway to integrate with the new version of AKS

Install the AGIC with the following command.

 

 

helm install agic application-gateway-kubernetes-ingress/ingress-azure -f helm_agic.yaml

 

 

Wait a few seconds

 

 

kubectl get po -o=custom-columns=NAME:. metadata.name,podIP:.status.podIP,NODE:.spec.nodeName,READY-true:.status.containerStatuses[*].ready
NAME                                    podIP          NODE                                READY-true
aad-pod-identity-mic-644c7c9f6-cqkxr   10.241.0.25   aks-nodepool1-20247409-vmss000000   true
aad-pod-identity-mic-644c7c9f6-xpwlt   10.241.0.67   aks-nodepool1-20247409-vmss000002   true
aad-pod-identity-nmi-k2c8s             10.241.0.35   aks-nodepool1-20247409-vmss000001   true
aad-pod-identity-nmi-vqqzq             10.241.0.66   aks-nodepool1-20247409-vmss000002   true
aad-pod-identity-nmi-xvcxm             10.241.0.4    aks-nodepool1-20247409-vmss000000   true
agic-ingress-azure-84967fc5b6-6x4dd    10.241.0.79   aks-nodepool1-20247409-vmss000002   true
aspnetapp-5844845bdc-82lcw             10.241.0.33   aks-nodepool1-20247409-vmss000000   true
aspnetapp-5844845bdc-hskvg             10.241.0.43   aks-nodepool1-20247409-vmss000001   true
aspnetapp-5844845bdc-qzt7f             10.241.0.84   aks-nodepool1-20247409-vmss000002   true

 

 

We can see that the pod for agic-ingress-azure-*** is up and running.

First look at the back end of the app gateway from the command line and it's updated to the new pods.  

 

 

az network application-gateway show-backend-health \
-g $RESOURCE_GROUP \
-n $APP_GATEWAY \
--query backendAddressPools[].backendHttpSettingsCollection[].servers[][address,health]
-o tsv
10.241.0.33     Healthy
10.241.0.43     Healthy
10.241.0.84     Healthy

 

 

Let's go back to the browser to refresh the public network IP of the app gateway and see that the Host name and IP display have switched to the new backend.

Rollback to the older cluster

If the new AKS cluster fails, we can switch back to the old AKS cluster. Just connect to the old AKS cluster first.

 

 

az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_OLD

 

 

Run the commands to install AGIC again.

 

 

helm uninstall agic
helm install agic application-gateway-kubernetes-ingress/ingress-azure -f helm_agic.yaml

 

 

We can see that the pod for AGIC is already running.

 

 

kubectl get po -o wide
NAME                                    READY   STATUS    RESTARTS   AGE    IP            NODE                                NOMINATED NODE   READINESS GATES
aad-pod-identity-mic-787c5958fd-kmx9b   1/1     Running   0          2d1h   10.240.0.33   aks-nodepool1-94448771-vmss000000   <none>           <none>
aad-pod-identity-mic-787c5958fd-nkpv4   1/1     Running   1          2d1h   10.240.0.63   aks-nodepool1-94448771-vmss000001   <none>           <none>
aad-pod-identity-nmi-mhp86              1/1     Running   0          2d1h   10.240.0.4    aks-nodepool1-94448771-vmss000000   <none>           <none>
aad-pod-identity-nmi-sjpvw              1/1     Running   0          2d1h   10.240.0.35   aks-nodepool1-94448771-vmss000001   <none>           <none>
aad-pod-identity-nmi-xnfxh              1/1     Running   0          2d1h   10.240.0.66   aks-nodepool1-94448771-vmss000002   <none>           <none>
agic-ingress-azure-84967fc5b6-nwbh4     1/1     Running   0          8s     10.240.0.70   aks-nodepool1-94448771-vmss000002   <none>           <none>
aspnetapp-68784d6544-j99qg              1/1     Running   0          2d     10.240.0.75   aks-nodepool1-94448771-vmss000002   <none>           <none>
aspnetapp-68784d6544-v9449              1/1     Running   0          2d     10.240.0.13   aks-nodepool1-94448771-vmss000000   <none>           <none>
aspnetapp-68784d6544-ztbd9              1/1     Running   0          2d     10.240.0.50   aks-nodepool1-94448771-vmss000001   <none>           <none>

 

 

Then look at the Application Gateway backends.

 

 

az network application-gateway show-backend-health \
 -g $RESOURCE_GROUP \
 -n $APP_GATEWAY \
 --query backendAddressPools[].backendHttpSettingsCollection[].servers[][address,health]
-o tsv
10.240.0.13     Healthy
10.240.0.50     Healthy
10.240.0.75     Healthy

 

We can see that the same App Gateway backends have been restored to the IPs of the old AKS cluster.

Testing availability during version switches

We use a continuous HTTP request to verify that the service is not interrupted during the switchover.

Open another command-line window and run.

while(true); \

do curl -s http://139.217.117.86/ |ts '[%Y-%m-%d %H:%M:%S]' | grep 10.24; \

sleep 0.1; done

[2021-08-03 16:35:09] 10.240.0.13                        <br />

[2021-08-03 16:35:10] 10.240.0.50                        <br />

[2021-08-03 16:35:11] 10.240.0.13                        <br />

[2021-08-03 16:35:12] 10.240.0.75                        <br />

[2021-08-03 16:35:12] 10.240.0.50                        <br />

[2021-08-03 16:35:13] 10.240.0.13                        <br />

[2021-08-03 16:35:14] 10.240.0.75                        <br />

We can see that the pod private IP in the old AKS cluster are returned.

Go back to the window of the previous AKS operation, switch to the new AKS cluster, and execute the command to delete and install the AGIC again.

az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_NEW

Run:

helm uninstall agic

Look at second window, we see that the IPs of the old AKS cluster still return. Because at this point we are only removing the operation on the new AKS cluster, and the application gateway and the old AKS cluster are still functioning normally.

Then execute on the new AKS cluster:

helm install agic application-gateway-kubernetes-ingress/ingress-azure -f helm_agic.yaml

Look at the 2nd window, we can see that the IP addresses of the new AKS cluster are returned directly from a line. There are no interruptions.

[2021-08-03 16:42:08] 10.240.0.13                        <br />

[2021-08-03 16:42:09] 10.240.0.50                        <br />

[2021-08-03 16:42:09] 10.240.0.75                        <br />

[2021-08-03 16:42:10] 10.240.0.13                        <br />

[2021-08-03 16:42:11] 10.240.0.50                        <br />

[2021-08-03 16:42:11] 10.240.0.75                        <br />

[2021-08-03 16:42:12] 10.241.0.33                        <br />

[2021-08-03 16:42:13] 10.241.0.33                        <br />

[2021-08-03 16:42:13] 10.241.0.43                        <br />

[2021-08-03 16:42:15] 10.241.0.43                        <br />

[2021-08-03 16:42:15] 10.241.0.84                        <br />

[2021-08-03 16:42:16] 10.241.0.84                        <br />

Thus, we verified there is not any interruption to front-end access. With this, it is possible to finally implement the old and new AKS clusters that are retained at the same time and can be switched in real time.

summary

The above is an example of a common Web application that demonstrates a new AKS cluster can be securely upgraded with a blue-green deployment. In addition to Web apps, applications of all types and scenarios can be referenced to switch between AKS clusters and upstream integrations for real-time switching and rollback.

%3CLINGO-SUB%20id%3D%22lingo-sub-2527280%22%20slang%3D%22en-US%22%3EUpgrading%20AKS%20version%20with%20blue-green%20deployment(II)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2527280%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--412388316%22%20id%3D%22toc-hId--412388341%22%3EApplication%20deployment%3C%2FH2%3E%0A%3CP%3ELet's%20deploy%20a%20demo%20app%20to%20verify%20that%20the%20app%20gateway%20and%20the%20AKS%20cluster%20have%20been%20successfully%20integrated.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECopy%20the%20following%20YAML%20file%20and%20save%20it%20as%20deployment_aspnet.yaml.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-yaml%22%3E%3CCODE%3EapiVersion%3A%20apps%2Fv1%0Akind%3A%20Deployment%0Ametadata%3A%0A%20%20name%3A%20aspnetapp%0Aspec%3A%0A%20%20replicas%3A%203%0A%20%20selector%3A%0A%20%20%20%20matchLabels%3A%0A%20%20%20%20%20%20app%3A%20aspnetapp%0A%20%20template%3A%0A%20%20%20%20metadata%3A%0A%20%20%20%20%20%20labels%3A%0A%20%20%20%20%20%20%20%20app%3A%20aspnetapp%0A%20%20%20%20spec%3A%0A%20%20%20%20%20%20containers%3A%0A%20%20%20%20%20%20%20%20-%20name%3A%20aspnetapp%0A%20%20%20%20%20%20%20%20%20%20%23%20Sample%20ASP.Net%20application%20from%20Microsoft%20which%20can%20get%20private%20IP.%0A%20%20%20%20%20%20%20%20%20%20image%3A%20mcr.microsoft.com%2Fdotnet%2Fcore%2Fsamples%3Aaspnetapp%0A%20%20%20%20%20%20%20%20%20%20ports%3A%0A%20%20%20%20%20%20%20%20%20%20-%20containerPort%3A%2080%0A---%0A%0AapiVersion%3A%20v1%0Akind%3A%20Service%0Ametadata%3A%0A%20%20name%3A%20aspnetapp%0Aspec%3A%0A%20%20selector%3A%0A%20%20%20%20app%3A%20aspnetapp%0A%20%20ports%3A%0A%20%20-%20protocol%3A%20TCP%0A%20%20%20%20port%3A%2080%0A%20%20%20%20targetPort%3A%2080%0A%0A---%0A%0AapiVersion%3A%20extensions%2Fv1beta1%0Akind%3A%20Ingress%0Ametadata%3A%0A%20%20name%3A%20aspnetapp%0A%20%20annotations%3A%0A%20%20%20%20kubernetes.io%2Fingress.class%3A%20azure%2Fapplication-gateway%0Aspec%3A%0A%20%20rules%3A%0A%20%20-%20http%3A%0A%20%20%20%20%20%20paths%3A%0A%20%20%20%20%20%20-%20path%3A%20%2F%0A%20%20%20%20%20%20%20%20backend%3A%0A%20%20%20%20%20%20%20%20%20%20serviceName%3A%20aspnetapp%0A%20%20%20%20%20%20%20%20%20%20servicePort%3A%2080%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ELet%E2%80%99s%20deploy%20the%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20apply%20-f%20deployment_aspnet.yaml%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20we%20can%20list%20the%20pods%20and%20verify%20our%20deployment%20is%20running.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20get%20po%20-o%20wide%0ANAME%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20READY%26nbsp%3B%26nbsp%3B%20STATUS%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RESTARTS%26nbsp%3B%26nbsp%3B%20AGE%26nbsp%3B%26nbsp%3B%26nbsp%3B%20IP%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NODE%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BNOMINATED%20NODE%26nbsp%3B%26nbsp%3B%20READINESS%20GATES%0Aaad-pod-identity-mic-787c5958fd-kmx9b%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177m%26nbsp%3B%26nbsp%3B%2010.240.0.33%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-mic-787c5958fd-nkpv4%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177m%26nbsp%3B%26nbsp%3B%2010.240.0.63%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-mhp86%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177m%26nbsp%3B%26nbsp%3B%2010.240.0.4%26nbsp%3B%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-sjpvw%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177m%26nbsp%3B%26nbsp%3B%2010.240.0.35%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-xnfxh%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20177m%26nbsp%3B%26nbsp%3B%2010.240.0.66%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aagic-ingress-azure-84967fc5b6-cqcn4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20111m%26nbsp%3B%26nbsp%3B%2010.240.0.79%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-j99qg%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B96%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.75%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-v9449%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2096%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.13%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-ztbd9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2096%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.50%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20see%20that%20the%20pods%20of%20the%20app%20are%20working%20correctly.%20Note%20that%20their%20IPs%20are%2010.240.0.13%2C%2010.240.0.50%2C%20and%2010.240.0.75.%3C%2FP%3E%0A%3CP%3EThe%20app%20gateway%20backend%20can%20be%20seen%20as%20the%20IP%20above.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20network%20application-gateway%20show-backend-health%20%5C%0A%20-g%20%24RESOURCE_GROUP%20%5C%0A%20-n%20%24APP_GATEWAY%20%5C%0A%20--query%20backendAddressPools%5B%5D.backendHttpSettingsCollection%5B%5D.servers%5B%5D%5Baddress%2Chealth%5D%0A%5B%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.13%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.50%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.75%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%0A%5D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20the%20I%20P%20address%20on%20the%20front%20end.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20network%20public-ip%20show%20-g%20%24RESOURCE_GROUP%20-n%20%24APPGW_IP%20--query%20ipAddress%20-o%20tsv%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20access%20this%20IP%20with%20a%20browser%20and%20you'll%20see%20it.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22snowpeak_0-1625734724808.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294245i02B01BBF36BFF841%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22snowpeak_0-1625734724808.png%22%20alt%3D%22snowpeak_0-1625734724808.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERefresh%20a%20few%20more%20times%2C%20and%20Host%20name%20and%20Server%20IP%20address%20display%203%20host%20names%20and%20IPs%20in%20turns%2C%20which%20are%20the%203%20pod%20names%20and%20intranet%20IPs%20of%20the%20pods%20we%20deployed%20earlier.%20This%20shows%20that%20pods%20integration%20in%20the%20application%20gateway%20and%20AKS%20has%20been%20successfully%20implemented.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--422891420%22%20id%3D%22toc-hId--422891445%22%3EDeploy%20a%20new%20cluster%20of%20AKS%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId-267670054%22%20id%3D%22toc-hId-267670029%22%3ECreate%20a%20new%20version%20of%20the%20AKS%20cluster%3C%2FH2%3E%0A%3CP%3ELet%E2%80%99s%20create%20a%20new%20AKS%20clusters%20in%20the%20subnet%20where%20the%20existing%20AKS%20is%20located.%20Our%20previous%20version%20of%20AKS%20uses%20the%20current%20default%20version%20of1.19.11.%20The%20new%20AKS%20cluster%20uses%201.20.7%2C%20and%20all%20the%20other%20parameters%20remain%20unchanged.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EAKS_NEW%3Dnew%0Aaz%20aks%20create%20-n%20%24AKS_NEW%20%5C%0A-g%20%24RESOURCE_GROUP%20%5C%0A-l%20%24AZ_REGION%20%5C%0A--generate-ssh-keys%20%5C%0A--network-plugin%20azure%20%5C%0A--enable-managed-identity%20%5C%0A--vnet-subnet-id%20%24AKS_SUBNET_ID%20%5C%0A--kubernetes-version%201.20.7%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20also%20installs%20application-gateway-kubernetes-ingress%20in%20the%20new%20AKS%20cluster%20with%20Helm.%20%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1539784409%22%20id%3D%22toc-hId--1539784434%22%3EInstall%20Pod%20Identify%20in%20the%20new%20version%20of%20the%20AKS%20cluster%3C%2FH2%3E%0A%3CP%3EConnect%20to%20the%20AKS%20cluster.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20aks%20get-credentials%20--resource-group%20%24RESOURCE_GROUP%20--name%20%24AKS_NEW%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EInstall%20AAD%20Pod%20Identify%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20create%20serviceaccount%20--namespace%20kube-system%20tiller-sa%0Akubectl%20create%20clusterrolebinding%20tiller-cluster-rule%20--clusterrole%3Dcluster-admin%20--serviceaccount%3Dkube-system%3Atiller-sa%0Ahelm%20repo%20add%20aad-pod-identity%20https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Faad-pod-identity%2Fmaster%2Fcharts%0Ahelm%20install%20aad-pod-identity%20aad-pod-identity%2Faad-pod-identity%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EInstall%20Application%20Gateway%20Ingress%20Controller%20with%20helm.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ehelm%20repo%20add%20application-gateway-kubernetes-ingress%20https%3A%2F%2Fappgwingress.blob.core.windows.net%2Fingress-azure-helm-package%2F%0Ahelm%20repo%20update%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-947728424%22%20id%3D%22toc-hId-947728399%22%3EDeploy%20apps%20on%20the%20new%20version%20of%20the%20AKS%20cluster%3C%2FH2%3E%0A%3CP%3EWe%20install%20the%20same%20app%20in%20the%20new%20AKS%20cluster.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20apply%20-f%20deployment_aspnet.yaml%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20app%20is%20deployed%2C%20list%20pods.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20get%20po%20-o%3Dcustom-columns%3DNAME%3A.metadata.name%2C%5C%0ApodIP%3A.status.podIP%2CNODE%3A.spec.nodeName%2C%5C%0AREADY-true%3A.status.containerStatuses%5B*%5D.ready%0A%26nbsp%3B%0ANAME%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20podIP%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NODE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20READY-true%0Aaad-pod-identity-mic-787c5958fd-flzgv%26nbsp%3B%26nbsp%3B%2010.240.0.189%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-mic-787c5958fd-rv2ql%26nbsp%3B%26nbsp%3B%2010.240.0.103%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-79sz7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.159%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-8wjnj%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.97%26nbsp%3B%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-qnrh9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.128%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000001%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-8pd8c%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.130%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000001%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-8r2hr%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.172%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-9ftvm%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.107%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20actual%20production%20operations%20process%2C%20after%20deploying%20a%20good%20app%2C%20we%20do%20not%20associate%20to%20the%20existing%20application%20gateway%20directly.%20Instead%2C%20we%20remotely%20log%20on%20and%20test%20through%20private%20network%20access.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20run%20-it%20--rm%20aks-ssh%20--image%3Dmcr.microsoft.com%2Faks%2Ffundamental%2Fbase-ubuntu%3Av0.0.11%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20the%20container%20is%20started%2C%20it%20goes%20straight%20into%20the%20container%2C%20and%20we%20visit%20the%20three%20intranet%20IPs%20mentioned%20above%20--10.240.0.107%2C%2010.240.0.130%2C%2010.240.0.172.%20For%20example%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eroot%40aks-ssh%3A%2F%23%20curl%20http%3A%2F%2F10.240.0.107%0Aroot%40aks-ssh%3A%2F%23%20curl%20http%3A%2F%2F10.240.0.130%0Aroot%40aks-ssh%3A%2F%23%20curl%20http%3A%2F%2F10.240.0.172%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20see%20that%20all%20can%20return%20content%20normally.%20This%20can%20be%20used%20to%20simulate%20the%20new%20environment%20has%20been%20tested%20and%20passed.%20Next%20step%2C%20wel%20will%20finally%20associate%20the%20new%20AKS%20cluster%20with%20the%20existing%20application%20gateway.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--859726039%22%20id%3D%22toc-hId--859726064%22%3ESwitching%20the%20app%20gateway%20to%20integrate%20with%20the%20new%20version%20of%20AKS%3C%2FH2%3E%0A%3CP%3EInstall%20the%20AGIC%20with%20the%20following%20command.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ehelm%20install%20agic%20application-gateway-kubernetes-ingress%2Fingress-azure%20-f%20helm_agic.yaml%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWait%20a%20few%20seconds%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20get%20po%20-o%3Dcustom-columns%3DNAME%3A.%20metadata.name%2CpodIP%3A.status.podIP%2CNODE%3A.spec.nodeName%2CREADY-true%3A.status.containerStatuses%5B*%5D.ready%0ANAME%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20podIP%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NODE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20READY-true%0Aaad-pod-identity-mic-787c5958fd-flzgv%26nbsp%3B%26nbsp%3B%2010.240.0.189%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-mic-787c5958fd-rv2ql%26nbsp%3B%26nbsp%3B%2010.240.0.103%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-79sz7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.159%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-8wjnj%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.97%26nbsp%3B%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%0Aaad-pod-identity-nmi-qnrh9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.128%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000001%26nbsp%3B%26nbsp%3B%20true%0Aagic-ingress-azure-84967fc5b6-9rvzn%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.152%20%26nbsp%3B%26nbsp%3Baks-nodepool1-20247409-vmss000001%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-8pd8c%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.130%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000001%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-8r2hr%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.172%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000002%26nbsp%3B%26nbsp%3B%20true%0Aaspnetapp-68784d6544-9ftvm%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.107%26nbsp%3B%26nbsp%3B%20aks-nodepool1-20247409-vmss000000%26nbsp%3B%26nbsp%3B%20true%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20see%20that%20the%20pod%20for%20agic-ingress-azure-***%20is%20up%20and%20running.%3C%2FP%3E%0A%3CP%3EFirst%20look%20at%20the%20back%20end%20of%20the%20app%20gateway%20from%20the%20command%20line%20and%20it's%20updated%20to%20the%20new%20pods.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20network%20application-gateway%20show-backend-health%20%5C%0A-g%20%24RESOURCE_GROUP%20%5C%0A-n%20%24APP_GATEWAY%20%5C%0A--query%20backendAddressPools%5B%5D.backendHttpSettingsCollection%5B%5D.servers%5B%5D%5Baddress%2Chealth%5D%0A%5B%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.107%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.130%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.172%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%0A%5D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20go%20back%20to%20the%20browser%20to%20refresh%20the%20public%20network%20IP%20of%20the%20app%20gateway%20and%20see%20that%20the%20Host%20name%20and%20IP%20display%20have%20switched%20to%20the%20new%20backend.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22snowpeak_1-1625734724814.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294246iA31841B820BA117E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22snowpeak_1-1625734724814.png%22%20alt%3D%22snowpeak_1-1625734724814.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20the%20new%20AKS%20cluster%20fails%2C%20we%20can%20switch%20back%20to%20the%20old%20AKS%20cluster.%20Just%20connect%20to%20the%20old%20AKS%20cluster%20first.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20aks%20get-credentials%20--resource-group%20%24RESOURCE_GROUP%20--name%20%24AKS_OLD%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERun%20the%20commands%20to%20install%20AGIC%20again.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ehelm%20uninstall%20agic%0Ahelm%20install%20agic%20application-gateway-kubernetes-ingress%2Fingress-azure%20-f%20helm_agic.yaml%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20see%20that%20the%20pod%20for%20AGIC%20is%20already%20running.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ekubectl%20get%20po%20-o%20wide%0ANAME%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20READY%26nbsp%3B%26nbsp%3B%20STATUS%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RESTARTS%26nbsp%3B%26nbsp%3B%20AGE%26nbsp%3B%26nbsp%3B%26nbsp%3B%20IP%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NODE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20NOMINATED%20NODE%26nbsp%3B%26nbsp%3B%20READINESS%20GATES%0Aaad-pod-identity-mic-787c5958fd-kmx9b%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d1h%26nbsp%3B%26nbsp%3B%2010.240.0.33%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-mic-787c5958fd-nkpv4%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d1h%26nbsp%3B%26nbsp%3B%2010.240.0.63%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-mhp86%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d1h%26nbsp%3B%26nbsp%3B%2010.240.0.4%26nbsp%3B%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-sjpvw%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B1%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d1h%26nbsp%3B%26nbsp%3B%2010.240.0.35%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaad-pod-identity-nmi-xnfxh%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d1h%26nbsp%3B%26nbsp%3B%2010.240.0.66%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CNONE%3E%0Aagic-ingress-azure-84967fc5b6-nwbh4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%208s%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B10.240.0.70%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-j99qg%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.75%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000002%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-v9449%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.13%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000000%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%0Aaspnetapp-68784d6544-ztbd9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%2F1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Running%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202d%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010.240.0.50%26nbsp%3B%26nbsp%3B%20aks-nodepool1-94448771-vmss000001%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FNONE%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20look%20at%20the%20Application%20Gateway%20backends.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20network%20application-gateway%20show-backend-health%20%5C%0A%20-g%20%24RESOURCE_GROUP%20%5C%0A%20-n%20%24APP_GATEWAY%20%5C%0A%20--query%20backendAddressPools%5B%5D.backendHttpSettingsCollection%5B%5D.servers%5B%5D%5Baddress%2Chealth%5D%0A%5B%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.13%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.50%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%2C%0A%26nbsp%3B%20%5B%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2210.240.0.75%22%2C%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Healthy%22%0A%26nbsp%3B%20%5D%0A%5D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20can%20see%20that%20the%20same%20App%20Gateway%20backends%20have%20been%20restored%20to%20the%20IPs%20of%20the%20old%20AKS%20cluster.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDuring%20the%20process%20to%20uninstall%20and%20reinstall%20the%20AGIC%2C%20neither%20the%20app%20gateway%20nor%20the%20app's%20pods%20are%20being%20operated.%20Therefore%2C%20there%20is%20not%20any%20interruption%20to%20front-end%20access.%20With%20this%2C%20it%20is%20possible%20to%20finally%20implement%20the%20old%20and%20new%20AKS%20clusters%20that%20are%20retained%20at%20the%20same%20time%20and%20can%20be%20switched%20in%20real%20time.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--870229143%22%20id%3D%22toc-hId--870229168%22%3Esummary%3C%2FH1%3E%0A%3CP%3EThe%20above%20is%20an%20example%20of%20a%20common%20Web%20application%20that%20demonstrates%20a%20new%20AKS%20cluster%20can%20be%20securely%20upgraded%20with%20a%20blue-green%20deployment.%20In%20addition%20to%20Web%20apps%2C%20applications%20of%20all%20types%20and%20scenarios%20can%20be%20referenced%20to%20switch%20between%20AKS%20clusters%20and%20upstream%20integrations%20for%20real-time%20switching%20and%20rollback.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2527280%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20previous%20post%2C%20we%20introduced%20the%20overall%20architecture%20of%20blue-green%20deployment%20to%20upgrade%20AKS%20and%20provisioned%20the%20basic%20resources.%20In%20this%20post%2C%20we%20will%20continue%20to%20deploy%20application%20in%20the%20current%20AKS%20cluster%2C%20set%20up%20a%20new%20AKS%20cluster%20and%20implement%20the%20blue-green%20deployment.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2527280%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Kubernetes%20Service%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Aug 11 2021 07:26 AM
Updated by: