knative / knative/serving

Support GRPC and HTTP2 without explicit port labeling

Open
#4,283 27 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/networking kind/feature triage/accepted
Dominant language
Go
Stars
6.1k
Forks
1.2k
Avg merge
2d 7h
Merged PRs (30d)
2

Description

In what area(s)?

/area networking

Describe the feature

Today to use GRPC or HTTP/2 for ingress into your service, you have to explicitly label the ports (see the GRPC sample: https://github.com/knative/docs/blob/master/docs/serving/samples/grpc-ping-go/sample.yaml)

However, the Runtime Contract states that the platform will perform automatic detection between HTTP/1.1, QUIC, and HTTP/2.

Unless overridden by setting the name field on the inbound port, the platform will perform automatic detection as described above.
Developers SHOULD prefer to use automatic content negotiation where available

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GRPC sample at docs/serving/samples/grpc-ping-go/sample.yaml and compare its explicit port labels with the Runtime Contract's automatic-detection requirement. Trace the networking entry points that interpret inbound port names and identify the existing tests for protocol detection; done means GRPC and HTTP/2 ingress work without explicit port labels while existing HTTP/1.1 and QUIC behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, grpc, kubernetes
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.