ProxyProtocolPolicy
Proto: proxy_protocol_policy.proto
Package: trafficcontrol.policy.gloo.solo.io
Types:
- ProxyProtocolPolicyReport
- ProxyProtocolPolicyReport.WorkspacesEntry
- ProxyProtocolPolicySpec
- ProxyProtocolPolicySpec.Config
- ProxyProtocolPolicyStatus
ProxyProtocolPolicyReport
Field | Description |
---|---|
workspaces |
(repeated ProxyProtocolPolicyReport.WorkspacesEntry )The status of the resource in each workspace that it exists in. |
selectedListeners |
(repeated common.gloo.solo.io.ListenerPortReference )A list of virtual gateway listeners selected by the policy. |
ProxyProtocolPolicyReport.WorkspacesEntry
Field | Description |
---|---|
key |
(string ) |
value |
(common.gloo.solo.io.Report ) |
ProxyProtocolPolicySpec
ProxyProtocolPolicy is used to enable proxy protocol for gateway listener(s).
For more details on ProxyProtocol, visit: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt.
apiVersion: trafficcontrol.policy.gloo.solo.io/v2
kind: ProxyProtocolPolicy
metadata:
name: my-policy
namespace: bookinfo
spec:
config:
enabledProxyProtocol: true
applyToListeners:
- virtualGateway:
name: virtual-gateway
namespace: bookinfo
cluster: my-cluster
port:
number: 443
Field | Description |
---|---|
applyToListeners |
(repeated common.gloo.solo.io.ListenerSelector )Required: The VirtualGateway(s) and Port(s) to which this policy applies. |
config |
(ProxyProtocolPolicySpec.Config )Required: The configuration to apply to the listener. |
ProxyProtocolPolicySpec.Config
Field | Description |
---|---|
enableProxyProtocol |
(bool ) |
ProxyProtocolPolicyStatus
reflects the status of the ProxyProtocolPolicy
Field | Description |
---|---|
common |
(common.gloo.solo.io.Status ) |
numSelectedListeners |
(uint32 )The number of virtual gateway listeners selected by the policy. |