<p>I have configured the following ingress for traefik but traefik is sending the entire traffic to app-blue-release.  Ideally it should send only 30% traffic to blue and 70% traffic to green, but it's not working as per expectation.</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    traefik.frontend.entryPoints: http
    traefik.ingress.kubernetes.io/service-weights: |-
      app-green-release: 70.0
      app-blue-release: 30.0
  creationTimestamp: 2019-06-04T06:00:37Z
  generation: 2
  labels:
    app: traefik-app
  name: traefik-app
  namespace: mynamespace
  resourceVersion: "645536328"
  selfLink: /apis/extensions/v1beta1/namespaces/mynamespace/ingresses/traefik-app
  uid: 4637377-747b-11e9-92ea-005056aeabf7
spec:
  rules:
  - host: mycompany2.com
    http:
      paths:
      - backend:
          serviceName: app-release
          servicePort: 8080
  - host: mycompany.com
    http:
      paths:
      - backend:
          serviceName: app-ui-release
          servicePort: 80
        path: /widget
      - backend:
          serviceName: app-green-release
          servicePort: 8080
        path: /
      - backend:
          serviceName: app-blue-release
          servicePort: 8080
        path: /
status:
  loadBalancer: {}
</code></pre>

<p>I am using following traffic version.
<em>traefik:v1.7.11-alpine</em></p>

<p>Earlier when the weight was configured with 10 (for blue) and 90(for green) then it was working fine. But once we changed to 30 and 70 respectively then this problem is happening.</p>

<p>Anyone has faced such issue before. Thanks for your help in advance</p>

<p>That seems to be followed by <a href="https://github.com/containous/traefik/issues/4494" rel="nofollow noreferrer">traefik issue 4494</a> (instead of your own <a href="https://github.com/containous/traefik/issues/4940" rel="nofollow noreferrer">issue 4940</a>)</p>

<blockquote>
  <p>the annotation <code>ingress.kubernetes.io/service-weights</code> has been added in <a href="https://github.com/containous/traefik/blob/master/CHANGELOG.md#v170-2018-09-24" rel="nofollow noreferrer">v1.7</a>, before the annotation was ignored.</p>
</blockquote>

<p>However, <a href="https://github.com/containous/traefik/issues/4494#issuecomment-500892876" rel="nofollow noreferrer">as of June 11th, 2019</a>, Damien Duportal (Træfik's Developer Advocate) adds:</p>

<blockquote>
  <p>There is no known workaround for now.<br>
  We are working on this, but as the version 2.0 of Traefik is currently worked on, we have to wait :)</p>
</blockquote>

<hr>

<p>This comes from <a href="https://github.com/containous/traefik/pull/3112" rel="nofollow noreferrer">PR 3112</a></p>

<blockquote>
  <p>Provides a new ingress annotation ingress.kubernetes.io/backend-weights which specifies a YAML-encoded, percentage-based weight distribution. With this annotation, we can do canary release by dynamically adjust the weight of ingress backends.</p>
</blockquote>

<p>(called initially <code>ingress.kubernetes.io/percentage-weights</code> before being renamed <code>ingress.kubernetes.io/service-weights</code> in <a href="https://github.com/containous/traefik/pull/3112/commits/11f6079d4814192db745c1175b9729bf64069de5" rel="nofollow noreferrer">commit 11f6079</a>)</p>

<p>The issue is still pending.<br>
Try first to upgrade to <a href="https://hub.docker.com/_/traefik" rel="nofollow noreferrer">v1.7.12-alpine</a> to check that the issue does persist.</p>

<p><a href="https://github.com/yue9944882/traefik/blob/11f6079d4814192db745c1175b9729bf64069de5/docs/configuration/backends/kubernetes.md#user-content-general-annotations" rel="nofollow noreferrer">The example</a> mentions:</p>

<pre><code>service_backend1: 1% # Note that the field names must match service names referenced in the Ingress object.
service_backend2: 33.33%
service_backend3: 33.33% # Same as 33.33%, the percentage sign is optional
</code></pre>

<p>So in your case, do try:</p>

<pre><code>  app-green-release: 70%
  app-blue-release: 30%
</code></pre>
