generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
There are multiple cases where it may make sense to not require a gateway owner to specify a listener port:
- Where a port number is irrelevant or nonsensical - Use Case: Use Kubernetes to deploy a network operation as a Service leveraging the Gateway APIย #1052 is an example AIUI
- Where the port is well-known and can be derived from the listener protocol - e.g. where
protocol==HTTP
default to port 80 if unspecified - Where a port should be auto-allocated for this listener - e.g. similar to auto-allocating an ephemeral port if you call
bind()
with the port specified as 0
One proposal is to specify that an unspecified port should be defined to have per-protocol semantics - so e.g. we'd define defaults for HTTP and HTTPS, but TLS, TCP, and UDP would be auto-allocated a random port. Implementation-specific protocols would define their own default behaviors.
Another alternative would be to use port==0
for auto-allocating a random port, and only have defaults for protocols where one makes sense.
See also #1060, #818, and Gateway API: Multi Port Approach
youngnick
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.