<p>I'm trying to setup canary-release with Nginx ingress controller. The problem is that it doesn't keep session affinity causing every request to be served by a random service.</p>

<p>My canary ingress:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  namespace: canary
  name: ingress-nginx
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/canary: "true"
    nginx.ingress.kubernetes.io/canary-weight: "50"
</code></pre>

<p>My default ingress:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-nginx
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/affinity: cookie
</code></pre>

<p>Is it currently possible to enable session affinity for canary release with Nginx ingress?</p>

Mauricio
<p>Seems you are not the only who have this problem. There is an open issue on github with mostly the same problem: <a href="https://github.com/kubernetes/ingress-nginx/issues/3717" rel="nofollow noreferrer">Session affinity doesn't work for canaries</a></p>

<p>Waiting for fix</p>
