Skip to content

Add support for "any" port/protocol in ingress rules #1997

@michi-covalent

Description

@michi-covalent

@tgraf I have a use case where I need to specify an L7 rule for some ports and allow L4 traffic to all the other ports. The policy rule could look something like this:

ingress:
- fromEndpoints:
  - matchLabels: {}
  toPorts:
  - ports:
    - port: "80"
      protocol: TCP
    rules:
      http:
      - method: ".*"
        path: ".*"
  - ports:
    - port: any
      protocol: any 

Metadata

Metadata

Assignees

Labels

area/k8sImpacts the kubernetes API, or kubernetes -> cilium internals translation layers.kind/featureThis introduces new functionality.priority/mediumThis is considered important, but not urgent.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions