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
CodePudding user response:
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