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
Copy file name to clipboardExpand all lines: docs/openstack-cloud-controller-manager/expose-applications-using-loadbalancer-type-service.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,11 @@ Request Body:
136
136
137
137
-`loadbalancer.openstack.org/proxy-protocol`
138
138
139
-
If 'true', the loadbalancer pool protocol will be set as `PROXY`. Default is 'false'.
139
+
Enable the ProxyProtocol on all listeners. Default is 'false'.
140
+
141
+
Values:
142
+
-`v1`, `true`: enable the ProxyProtocol version 1
143
+
-`v2`: enable the ProxyProtocol version 2
140
144
141
145
Not supported when `lb-provider=ovn` is configured in openstack-cloud-controller-manager.
142
146
@@ -402,6 +406,8 @@ To enable PROXY protocol support, the either the openstack-cloud-controller-mana
402
406
app: nginx-ingress
403
407
```
404
408
409
+
> To use the ProxyProtocol's version 2, set the annotation's value to `v2`. By default, ProxyProtocol's version 1 is used.
410
+
405
411
Wait until the service gets an external IP.
406
412
407
413
```bash
@@ -500,6 +506,8 @@ To enable PROXY protocol support, the either the openstack-cloud-controller-mana
500
506
-no body in request-
501
507
```
502
508
509
+
> Note: the Proxy Protocol is only available with TCP services.
510
+
503
511
### Sharing load balancer with multiple Services
504
512
505
513
By default, different Services of LoadBalancer type should have different corresponding cloud load balancers, however, openstack-cloud-controller-manager allows multiple Services to share a single load balancer if the Octavia service supports the tag feature (since API version 2.5).
// getProxyProtocolFromServiceAnnotation searches a given v1.Service the ServiceAnnotationLoadBalancerProxyEnabled to guess if the proxyProtocol needs to be
478
+
// enabled and return the ProxyProtocol's version which is need to be applied
klog.V(4).Infof("Forcing to use %q protocol for pool because annotations %q %q are set", v2pools.ProtocolHTTP, ServiceAnnotationLoadBalancerXForwardedFor, ServiceAnnotationTlsContainerRef)
returnfmt.Errorf("annotation %s and %s cannot be used together", ServiceAnnotationLoadBalancerProxyEnabled, ServiceAnnotationLoadBalancerXForwardedFor)
returnfmt.Errorf("annotation %s and %s cannot be used together", ServiceAnnotationLoadBalancerProxyEnabled, ServiceAnnotationLoadBalancerXForwardedFor)
0 commit comments