Skip to content

LoadBalancer

Appears in

  • .Values.service.$name

sharedKey

Sets the shared key in metallb.universe.tf/allow-shared-ip MetalLB Annotation

Keyservice.$name.sharedKey
Typestring
Required
Helm tpl
Default$FullName

Example

service:
some-service:
sharedKey: custom-shared-key

loadBalancerIP

Define the load balancer IP, sets the metallb.universe.tf/loadBalancerIPs MetalLB annotation. Mutually exclusive with loadBalancerIPs

Keyservice.$name.loadBalancerIP
Typestring
Required
Helm tpl
Default""

Example

service:
some-service:
loadBalancerIP: 1.2.3.4

loadBalancerIPs

Define the load balancer IPs, sets the metallb.universe.tf/loadBalancerIPs MetalLB annotation. Mutually exclusive with loadBalancerIP

Keyservice.$name.loadBalancerIPs
Typelist of string
Required
Helm tpl✅ (On entries only)
Default[]

Example

service:
some-service:
loadBalancerIPs:
- 1.2.3.4
- 5.6.7.8

loadBalancerSourceRanges

Define the load balancer source ranges

Keyservice.$name.loadBalancerSourceRanges
Typelist of string
Required
Helm tpl✅ (On entries only)
Default[]

Example

service:
some-service:
loadBalancerSourceRanges:
- 10.100.100.0/24
- 10.100.200.0/24

Full Examples

service:
service-lb:
enabled: true
primary: true
type: LoadBalancer
loadBalancerIP: 10.100.100.2
loadBalancerSourceRanges:
- 10.100.100.0/24
clusterIP: 172.16.20.233
sharedKey: custom-shared-key
publishNotReadyAddresses: true
ipFamilyPolicy: SingleStack
ipFamilies:
- IPv4
externalIPs:
- 10.200.230.34
sessionAffinity: ClientIP
sessionAffinityConfig:
clientIP:
timeoutSeconds: 86400
externalTrafficPolicy: Cluster
targetSelector: pod-name
ports:
port-name:
enabled: true
primary: true
targetSelector: container-name
port: 80
protocol: HTTP
targetPort: 8080