简体   繁体   中英

Application Gateway to pickup new IP of AKS POD

I have a simple site running in AKS which is load balanced with an application gateway. The pod IP for the site is setup as a backend pool in the AGW but if I restart the pod, the IP changes therefor the backend pool will break.

Is there anyway AGW can pickup the POD's name rather then using its IP address, so if we do restart a pod, it will still be available in the back end pool?

Thanks

Thank You CSharpRocks for your suggestion.

Would suggest you to use the Cluster IP to front your POD because ClusterIP cannot be changed, but External IP can.

在此处输入图像描述

you might lose the external IP forever; with cloud providers, for example, if you haven't reserved it previously.

You can edit the service and change the external IP, or change the service type, in which case it will lose it automatically, and change it back to LoadBalancer type, later on, with different IP address.

But to change the ClusterIP you have to delete the service.

Reference: Can a kubernetes service change IP when rolling out/restart my app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM