Provide static IP-address for LoadBalancer

Description

We allow users to expose database clusters and its components through various Service Types, including load balancers.

There is a use case, where user wants to have a static IP-address for the load balancer. This also includes internal load balancers in the clouds.

 

This can be done through `loadBalancerIP` field.

 

  • We are going to pass through loadBalancerIP parameter to the service spec.

  • If exposeType is not LoadBalancer, we still pass through loadBalancerIP parameter to the spec

  • We rely on Kubernetes logic to parse and make a decision about loadBalancerIP valid inputs

    • We return the error if service creation fails

  • We are not adding loadBanacerIP to pgReplicas exposure, as these are exposed as a service per Pod.

  • We are going to introduce loadBalancerIP into the custom resource in the following places:

Environment

None

Smart Checklist

Activity

Slava Sarzhan March 10, 2023 at 2:32 PM

It was done.

Done

Details

Assignee

Reporter

Needs QA

Yes

Fix versions

Priority

Smart Checklist

Created March 2, 2022 at 9:23 AM
Updated March 5, 2024 at 3:56 PM
Resolved March 31, 2023 at 12:20 PM