added support for tcp proxyProtocol v1&v2 to backend
This commit is contained in:
parent
520fcf82ae
commit
84b125bdde
28 changed files with 388 additions and 83 deletions
|
@ -140,6 +140,15 @@ func createLoadBalancerServerTCP(client Client, namespace string, service v1alph
|
|||
},
|
||||
}
|
||||
|
||||
if service.ProxyProtocol != nil {
|
||||
tcpService.LoadBalancer.ProxyProtocol = &dynamic.ProxyProtocol{}
|
||||
tcpService.LoadBalancer.ProxyProtocol.SetDefaults()
|
||||
|
||||
if service.ProxyProtocol.Version != 0 {
|
||||
tcpService.LoadBalancer.ProxyProtocol.Version = service.ProxyProtocol.Version
|
||||
}
|
||||
}
|
||||
|
||||
if service.TerminationDelay != nil {
|
||||
tcpService.LoadBalancer.TerminationDelay = service.TerminationDelay
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue