You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Default specifies default listener configuration for all Listeners, unless a per-port
58
+
// configuration is defined.
59
+
// +optional
60
+
Default*ListenerConfig`json:"default,omitempty"`
61
+
62
+
// Per port configuration allows overriding the listener config per port. Once set, this
63
+
// configuration completely replaces the default configuration for all listeners handling traffic
64
+
// that match this port. Unspecified fields in per-port configuration will not inherit values from default.
65
+
//
66
+
// +optional
67
+
// +listType=map
68
+
// +listMapKey=port
69
+
// +kubebuilder:validation:MaxItems=64
70
+
// +kubebuilder:validation:XValidation:message="Port for listener configuration must be unique within the Gateway",rule="self.all(t1, self.exists_one(t2, t1.port == t2.port))"
Copy file name to clipboardExpand all lines: install/helm/kgateway-crds/templates/gateway.kgateway.dev_listenerpolicies.yaml
+75-16Lines changed: 75 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -57,24 +57,83 @@ spec:
57
57
description: ListenerPolicySpec defines the desired state of a listener
58
58
policy.
59
59
properties:
60
-
perConnectionBufferLimitBytes:
60
+
default:
61
61
description: |-
62
-
PerConnectionBufferLimitBytes sets the per-connection buffer limit for all listeners on the gateway.
63
-
This controls the maximum size of read and write buffers for new connections.
64
-
When using Envoy as an edge proxy, configuring the listener buffer limit is important to guard against
65
-
potential attacks or misconfigured downstreams that could hog the proxy's resources.
66
-
If unspecified, an implementation-defined default is applied (1MiB).
67
-
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes
68
-
format: int32
69
-
minimum: 0
70
-
type: integer
71
-
proxyProtocol:
72
-
description: |-
73
-
ProxyProtocol configures the PROXY protocol listener filter.
74
-
When set, Envoy will expect connections to include the PROXY protocol header.
75
-
This is commonly used when kgateway is behind a load balancer that preserves client IP information.
76
-
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto
62
+
Default specifies default listener configuration for all Listeners, unless a per-port
63
+
configuration is defined.
64
+
properties:
65
+
perConnectionBufferLimitBytes:
66
+
description: |-
67
+
PerConnectionBufferLimitBytes sets the per-connection buffer limit for all listeners on the gateway.
68
+
This controls the maximum size of read and write buffers for new connections.
69
+
When using Envoy as an edge proxy, configuring the listener buffer limit is important to guard against
70
+
potential attacks or misconfigured downstreams that could hog the proxy's resources.
71
+
If unspecified, an implementation-defined default is applied (1MiB).
72
+
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes
73
+
format: int32
74
+
minimum: 0
75
+
type: integer
76
+
proxyProtocol:
77
+
description: |-
78
+
ProxyProtocol configures the PROXY protocol listener filter.
79
+
When set, Envoy will expect connections to include the PROXY protocol header.
80
+
This is commonly used when kgateway is behind a load balancer that preserves client IP information.
81
+
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto
82
+
type: object
77
83
type: object
84
+
perPort:
85
+
description: |-
86
+
Per port configuration allows overriding the listener config per port. Once set, this
87
+
configuration completely replaces the default configuration for all listeners handling traffic
88
+
that match this port. Unspecified fields in per-port configuration will not inherit values from default.
89
+
items:
90
+
properties:
91
+
listener:
92
+
description: |-
93
+
Listener stores the configuration that will be applied to all Listeners handling
94
+
matching the given port.
95
+
properties:
96
+
perConnectionBufferLimitBytes:
97
+
description: |-
98
+
PerConnectionBufferLimitBytes sets the per-connection buffer limit for all listeners on the gateway.
99
+
This controls the maximum size of read and write buffers for new connections.
100
+
When using Envoy as an edge proxy, configuring the listener buffer limit is important to guard against
101
+
potential attacks or misconfigured downstreams that could hog the proxy's resources.
102
+
If unspecified, an implementation-defined default is applied (1MiB).
103
+
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-per-connection-buffer-limit-bytes
104
+
format: int32
105
+
minimum: 0
106
+
type: integer
107
+
proxyProtocol:
108
+
description: |-
109
+
ProxyProtocol configures the PROXY protocol listener filter.
110
+
When set, Envoy will expect connections to include the PROXY protocol header.
111
+
This is commonly used when kgateway is behind a load balancer that preserves client IP information.
112
+
See here for more information: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/listener/proxy_protocol/v3/proxy_protocol.proto
113
+
type: object
114
+
type: object
115
+
port:
116
+
description: |-
117
+
The Port indicates the Port Number to which the Listener configuration will be
118
+
applied. This configuration will be applied to all Listeners handling
119
+
traffic that match this port.
120
+
format: int32
121
+
maximum: 65535
122
+
minimum: 1
123
+
type: integer
124
+
required:
125
+
- listener
126
+
- port
127
+
type: object
128
+
maxItems: 64
129
+
type: array
130
+
x-kubernetes-list-map-keys:
131
+
- port
132
+
x-kubernetes-list-type: map
133
+
x-kubernetes-validations:
134
+
- message: Port for listener configuration must be unique within the
0 commit comments