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

Linkerd implementation of Gateway API not follow GAMMA spec #12295

Open
qts0312 opened this issue Mar 19, 2024 · 1 comment
Open

Linkerd implementation of Gateway API not follow GAMMA spec #12295

qts0312 opened this issue Mar 19, 2024 · 1 comment

Comments

@qts0312
Copy link

qts0312 commented Mar 19, 2024

What is the issue?

I am using Gateway API in Linkerd and find inconsistency between route behavior in Linkerd and GAMMA specification. In GEP, it says that GAMMA implementation should not infer any functionality from the hostnames field on HTTPRoute. But actually, hostnames in HTTPRoute makes effect in Linkerd.

How can it be reproduced?

For example, as configuration below, curl -H"host:www.bookinfo.com" http://back:80 can get correct service while curl -H"host:www.example.com" http://back:80 cannot.

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: hr-1
spec:
  parentRefs:
    - port: 80
      group: ''
      kind: Service
      name: back
  hostnames:
    - www.bookinfo.com
  rules:
    - backendRefs:
        - name: productpage
          port: 9090

Logs, error output, etc

There are no specific logs.

output of linkerd check -o short

Status check results are √

Environment

  • Kubernetes Version: 1.28.2
  • Linkerd Version: stable-2.14.10

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

None

@kflynn
Copy link
Member

kflynn commented Mar 28, 2024

GAMMA is likely going to standardize on Linkerd's behavior being correct, since it's more parallel to the way HTTPRoutes work when bound to Gateways -- check out kubernetes-sigs/gateway-api#2885. (I'll leave this open while that issue works its way through.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants