Skip to content

Set ipMode: Proxy for LoadBalancer services with proxy mode enabled #179

@sgielen

Description

@sgielen

In 2020, Scaleway proposed KEP-1860, a way to inform Kubernetes whether a load balancer is transparent or not. This can be used if the load balancer applies things like TLS termination or the proxy protocol. If this is the case, any connections from inside the cluster must go to the external load balancer before going back into the cluster. Otherwise, the connections inside the cluster will remain wrapped in TLS while the application expects plaintext, or will not be wrapped in the proxy protocol, while the application expects so.

Since v1.30 this KEP is in beta, i.e. default enabled. This is also the case on Scaleway clusters. This can be observed, because the LoadBalancer Services have their ipMode set to the default:

status:
  loadBalancer:
    ingress:
    - ip: 51.<snip>
      ipMode: VIP

However, the next step is to set the ipMode to Proxy properly, if the external LoadBalancer must be used even for traffic inside the cluster. This is the case, for example, if the service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v2 annotation is set (there may be other annotations as well).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions