Skip to content

Sidecar ports should not conflict with user ports #2761

@dgerd

Description

@dgerd

Expected Behavior

As a user of Knative I can pick any valid port for my container.

Actual Behavior

Currently ports 8012 and 8022 are hardcoded and used by the QueueProxy sidecar. Since they share the same network interface as the user container, the user container cannot select these ports. Use of these ports are currently blocked by the webhook (#2753). This issue is to update the QueueProxy to allow it to be started on arbitrary ports, and update the routing to the QueueProxy to support the arbitrary port.

Additional Info

https://github.com/knative/serving/blob/master/pkg/queue/constants.go
https://github.com/knative/serving/blob/master/cmd/queue/main.go
https://github.com/knative/serving/blob/master/pkg/reconciler/v1alpha1/revision/resources/queue.go
https://github.com/knative/serving/blob/master/pkg/reconciler/v1alpha1/revision/resources/deploy.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIAPI objects and controllersarea/networkingkind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions