Router traffic not distributing in advanced deployment strategies (A/B testing or Blue/Green deployment)

Solution Verified - Updated -

Issue

Even after allowing 100% of weight to the ab-example-a service, traffic is still going to the ab-example-b service.

~~~
$ oc edit route <route-name>

metadata:
  name: test-route
spec:
  host: ab-example.my-project.my-domain
  to:
    kind: Service
    name: ab-example-a
    weight: 100
  alternateBackends:
  - kind: Service
    name: ab-example-b
    weight: 0
~~~

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content