fix for review
This commit is contained in:
parent
456df0fc19
commit
b1fd3b8fc7
2 changed files with 5 additions and 4 deletions
|
@ -299,7 +299,7 @@ which in turn will create the resulting routers, services, handlers, etc.
|
|||
See [ServersTransport](../services/index.md#serverstransport) for more information.
|
||||
|
||||
```yaml
|
||||
traefik.ingress.kubernetes.io/service.serversscheme: mtls@file
|
||||
traefik.ingress.kubernetes.io/service.serverstransport: foobar@file
|
||||
```
|
||||
|
||||
??? info "`traefik.ingress.kubernetes.io/service.passhostheader`"
|
||||
|
|
|
@ -525,14 +525,15 @@ func loadService(client Client, namespace string, backend networkingv1.IngressBa
|
|||
|
||||
if svcConfig != nil && svcConfig.Service != nil {
|
||||
svc.LoadBalancer.Sticky = svcConfig.Service.Sticky
|
||||
|
||||
if svcConfig.Service.PassHostHeader != nil {
|
||||
svc.LoadBalancer.PassHostHeader = svcConfig.Service.PassHostHeader
|
||||
}
|
||||
}
|
||||
|
||||
if svcConfig != nil && svcConfig.Service != nil && svcConfig.Service.ServersTransport != "" {
|
||||
if svcConfig.Service.ServersTransport != "" {
|
||||
svc.LoadBalancer.ServersTransport = svcConfig.Service.ServersTransport
|
||||
}
|
||||
}
|
||||
|
||||
if service.Spec.Type == corev1.ServiceTypeExternalName {
|
||||
protocol := getProtocol(portSpec, portSpec.Name, svcConfig)
|
||||
|
|
Loading…
Reference in a new issue