Skip to content

traffic routing by alb and nginx simultaneously is not working #4452

@fabioviana-hotmart

Description

@fabioviana-hotmart

Checklist:

  • I've included steps to reproduce the bug.
  • I've included the version of argo rollouts.

Describe the bug

I have an application with three ingresses. One of them is an ALB and the others are NGINX. I've tried to migrate it to argo rollouts with this manifest below:

apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
  name: sample-api
  labels:
    app: sample-api
spec:
  replicas: 2
  workloadRef:
    apiVersion: apps/v1
    kind: Deployment
    name: sample-api
  analysis:
    successfulRunHistoryLimit: 3
    unsuccessfulRunHistoryLimit: 3
  strategy:
    canary:
      stableService: sample-api
      canaryService: sample-api-canary
      trafficRouting:
        alb:
          ingresses:
          - sample-api-alb
          servicePort: 80
          rootService: sample-api-root
        nginx:
          stableIngresses:
          - sample-api-public
          - sample-api-internal
          canaryIngressAnnotations:
            provider: canary
      steps:
      - setWeight: 10
      - pause:
          duration: 5m
      - setWeight: 30
      - pause: {}

When argo rollouts tries to reconciliate this configurations it emits this error:

spec.strategy.canary.trafficRouting.nginx.stableIngress: Invalid value: \"\": ingress `sample-api-alb` has no rules using service sample-api backend

But there isn't a definition for stableIngress in my nginx statement, just stableIngresses instead, much less with an ingress called sample-api-alb. It's configured just on alb statement.

To Reproduce

  1. Create an alb ingress and one or more nginx ingress for the same application
  2. Configure a rollout with both ingresses, each one in its trafficRouting statement
  3. Apply the rollout and you will see the error

Expected behavior

Both ingresses traffic managed by argo rollouts simultaneously.

Version

v1.8.3

Logs

time="2025-09-17T01:50:50Z" level=error msg="spec.strategy.canary.trafficRouting.nginx.stableIngress: Invalid value: \"\": ingress `sample-api-alb` has no rules using service sample-api backend" error="<nil>"

Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions