Session affinity cookie not working anymore (Kubernetes with Nginx ingress) Session affinity cookie not working anymore (Kubernetes with Nginx ingress) kubernetes kubernetes

Session affinity cookie not working anymore (Kubernetes with Nginx ingress)


Ok, the issue was not related to any configuration shown above. The debug logs of the nginx pods were full of error messages in regards to the kube-control namespaces. I was removing the Nginx helm chart completely and used the repositories suggested by Microsoft:

https://docs.microsoft.com/en-us/azure/aks/ingress-own-tls

# Create a namespace for your ingress resourceskubectl create namespace ingress-basic# Add the ingress-nginx repositoryhelm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx# Use Helm to deploy an NGINX ingress controllerhelm install nginx-ingress ingress-nginx/ingress-nginx \    --namespace ingress-basic \    --set controller.replicaCount=2 \    --set controller.nodeSelector."beta\.kubernetes\.io/os"=linux \    --set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux