<p>I am running a python application which is having react bundle.</p>

<p>Currently, i am running single pod of application everything seems to work fine but when i was scaling up to pod number 2-3 it's creating an issue in some case not able to login into the application.</p>

<p>in ingress, i have added 
 ingress yaml config is :</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: admin-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
    certmanager.k8s.io/cluster-issuer: admin-prod
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
    nginx.ingress.kubernetes.io/secure-backends: "true"
    nginx.ingress.kubernetes.io/affinity: "cookie"
    nginx.ingress.kubernetes.io/session-cookie-name : "session"
spec:
  tls:
  - hosts:
    - domain
    secretName: admin-prod
  rules:
  - host: domain
    http:
      paths:
      - path: /
        backend:
          serviceName: admin-service
          servicePort: 80
</code></pre>

Harsh Manvar
<p>It appears like you are storing user session info in cookie.</p>

<p>nginx.ingress.kubernetes.io/affinity: "cookie"</p>

<p>the above setting would enable sticky session using the cookie. say, user is connected to replica-1. his session info is stored in cookie. he gets logged out and logs in back, he would be taken to replica-1.</p>
