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

Infra Manager Unable to Create Service When Gateway Has Multiple Ports #517

Closed
danehans opened this issue Oct 7, 2022 · 1 comment · Fixed by #518
Closed

Infra Manager Unable to Create Service When Gateway Has Multiple Ports #517

danehans opened this issue Oct 7, 2022 · 1 comment · Fixed by #518
Assignees
Labels
kind/bug Something isn't working

Comments

@danehans
Copy link
Contributor

danehans commented Oct 7, 2022

Create a Gateway with multiple ports:

apiVersion: gateway.networking.k8s.io/v1alpha2
kind: Gateway
metadata:
  name: eg
spec:
  gatewayClassName: eg
  listeners:
    - name: http
      protocol: HTTP
      port: 80
    - name: tls
      protocol: HTTPS
      port: 8443
...

The Infra Manager is unable to create the Service:

2022-10-07T09:17:39.098-0700  ERROR runner/runner.go:56 failed to create new infra  {"runner": "infrastructure", "error": "failed to create service envoy-gateway-system/envoy-default-eg: Service \"envoy-default-eg\" is invalid: spec.ports[1].name: Duplicate value: \"default-eg\""}

You can see the duplicate port name in the infra IR:

2022-10-07T09:17:37.526-0700  INFO  runner/runner.go:90 default-eg:
  Proxy:
    Config: null
    Image: envoyproxy/envoy:v1.23-latest
    Listeners:
    - Address: ""
      Ports:
      - ContainerPort: 80
        Name: default-eg
        Protocol: HTTP
        ServicePort: 8080
      - ContainerPort: 8443
        Name: default-eg
        Protocol: HTTPS
        ServicePort: 443
    Metadata:
      Labels:
        gateway.envoyproxy.io/owning-gateway-name: eg
        gateway.envoyproxy.io/owning-gateway-namespace: default
    Name: default-eg
  {"runner": "gateway-api", "output": "infra-ir"}
@danehans danehans added the kind/bug Something isn't working label Oct 7, 2022
@danehans
Copy link
Contributor Author

danehans commented Oct 7, 2022

xref #471 #441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant