LoadBalancer
Appears in
.Values.service.$name
sharedKey
Sets the shared key in metallb.io/allow-shared-ip MetalLB Annotation
| Key | service.$name.sharedKey |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | $FullName |
Example
service: some-service: sharedKey: custom-shared-keyloadBalancerIP
Define the load balancer IP, sets the metallb.io/loadBalancerIPs MetalLB annotation. Mutually exclusive with loadBalancerIPs
| Key | service.$name.loadBalancerIP |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | "" |
Example
service: some-service: loadBalancerIP: 1.2.3.4loadBalancerIPs
Define the load balancer IPs, sets the metallb.io/loadBalancerIPs MetalLB annotation. Mutually exclusive with loadBalancerIP
| Key | service.$name.loadBalancerIPs |
| Type | list of string |
| Required | ❌ |
Helm tpl | ✅ (On entries only) |
| Default | [] |
Example
service: some-service: loadBalancerIPs: - 1.2.3.4 - 5.6.7.8loadBalancerSourceRanges
Define the load balancer source ranges
| Key | service.$name.loadBalancerSourceRanges |
| Type | list of string |
| Required | ❌ |
Helm tpl | ✅ (On entries only) |
| Default | [] |
Example
service: some-service: loadBalancerSourceRanges: - 10.100.100.0/24 - 10.100.200.0/24Full 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