Skip to content

Check my rationale please #169

@m-castaldo

Description

@m-castaldo

Hey all,

I'm quite new to rollouts and gatewayapi and as wondering if you experts might be able to help me please :) If I set this in my canary steps:

      canary:
        steps:
        - setCanaryScale:
            replicas: 1

        - setHeaderRoute:
            match:
                - headerName: X-Canary
                  headerValue:
                    exact: "true"
            name: canary-header
        - setWeight: 1
        - pause: {}
        - setCanaryScale:
            matchTrafficWeight: true
        - setWeight: 20
        - pause: {}
        - setWeight: 50
        - pause: {duration: 30}

Then the header rule works 100% of the time but also sends normal traffic 1% of the time to canary which I dont want, but if I set this:

      canary:
        steps:
        - setCanaryScale:
            replicas: 1

        - setHeaderRoute:
            match:
                - headerName: X-Canary
                  headerValue:
                    exact: "true"
            name: canary-header
        - pause: {}
        - setCanaryScale:
            matchTrafficWeight: true
        - setWeight: 20
        - pause: {}
        - setWeight: 50
        - pause: {duration: 30}

Then it returns nothing at all and when looking in the httproute its setting weight to 0 which means that its not allowing any traffic to the canary deployment.

I was wondering what I might be doing wrong?

Thanks!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions