Skip to content

Commit

Permalink
feat: add loadBalancerClass for proxy and pulsar-manager (#546)
Browse files Browse the repository at this point in the history
* feat: add loadBalancerClass for proxy and pulsar-manager

Co-authored-by: Lari Hotari <[email protected]>
  • Loading branch information
lenglet-k and lhotari authored Nov 8, 2024
1 parent d877fc3 commit ed50c68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/pulsar/templates/proxy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
{{- with .Values.proxy.service.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- with .Values.proxy.service.loadBalancerClass }}
loadBalancerClass: {{ . }}
{{- end }}
{{- if .Values.proxy.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.proxy.service.externalTrafficPolicy }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pulsar/templates/pulsar-manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
{{- if .Values.pulsar_manager.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.pulsar_manager.service.externalTrafficPolicy }}
{{- end }}
{{- with .Values.pulsar_manager.service.loadBalancerClass }}
loadBalancerClass: {{ . }}
{{- end }}
{{- if .Values.pulsar_manager.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml .Values.pulsar_manager.service.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,8 @@ proxy:
## Restrict traffic through the load balancer to specified IPs on providers supporting it.
# loadBalancerSourceRanges:
# - 10.0.0.0/8
# Set a loadBalancerClass for loadbalancer service. (example: loadBalancerClass is needed by metallb)
# loadBalancerClass: ""
# Optional. When setting proxy.service.type is set to NodePort, nodePorts allows to choose the port that will be open on each node to proxy requests to each destination proxy service.
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
nodePorts:
Expand Down Expand Up @@ -1406,6 +1408,8 @@ pulsar_manager:
## Restrict traffic through the load balancer to specified IPs on providers supporting it.
# loadBalancerSourceRanges:
# - 10.0.0.0/8
# Set a loadBalancerClass for loadbalancer service. (example: loadBalancerClass is needed by metallb)
# loadBalancerClass: ""
adminService:
type: ClusterIP
port: 7750
Expand Down

0 comments on commit ed50c68

Please sign in to comment.