Configuring Static IP address with Ingress Nginx Sticky Session on Azure Kubernetes Configuring Static IP address with Ingress Nginx Sticky Session on Azure Kubernetes kubernetes kubernetes

Configuring Static IP address with Ingress Nginx Sticky Session on Azure Kubernetes


Ok I got it working. I think the difference lies in the cloud provider you are using, and for Azure Cloud, you should follow their documentation and their way of implementing ingress controller in the Kubernetes cluster.

Link over here for deploying the ingress controller. Their way of creating the public IP address within the Kubernetes cluster and linking it up with the ingress controller works. I can confirm as of now, the time of writing.

Once I am done deploying the steps in the link above, I can apply the ingress .yaml file as usual i.e. kubectl apply -f nginx-sticky-server.yaml to set up the nginx sticky session. IF the service name and service port stated in your ingress .yaml file is correct, the nginx ingress controller should redirect your user requests to the correct service.