Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does flagger canary work with service loadbalancer type #1722

Open
alexhu20 opened this issue Nov 15, 2024 · 0 comments
Open

How does flagger canary work with service loadbalancer type #1722

alexhu20 opened this issue Nov 15, 2024 · 0 comments

Comments

@alexhu20
Copy link

Description

Hello team, I am deploying my own custom istio-gateway to my aks cluster using canary, and i need to create a loadbalancer type service to serve external traffic.

However, during canary rollout flagger creates three cluser ip service type with only 80 exposes which causing my gateway no longer able to servce traffic at https or 443 port.

I have looked into several setups:

  • set portDiscovery: true - doesn't seem to work

What's a correct way to have my gateway loadbalancer serve at both 80 for http2 and 443 ports while doing canary rollout?

and my canary service definition

  service:
    # service port number
    port: 80
    # container port number or name (optional)
    targetPort: 8080
    # Istio gateways (optional)
    gateways: {{- range .Values.canary.gateways }}
      - {{.}}
    {{- end }}
    # Istio virtual service host names (optional)
    hosts: {{- range .Values.canary.hosts }}
      - {{.}}
    {{- end }}
    # Istio traffic policy (optional)
    trafficPolicy:
      tls:
        # use ISTIO_MUTUAL when mTLS is enabled
        mode: DISABLE
    # Istio retry policy (optional)
    retries:
      attempts: 3
      perTryTimeout: 1s
      retryOn: "gateway-error,connect-failure,refused-stream"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant