diff --git a/chart/pyroscope/templates/service.yaml b/chart/pyroscope/templates/service.yaml index b2488e2..f0360e7 100644 --- a/chart/pyroscope/templates/service.yaml +++ b/chart/pyroscope/templates/service.yaml @@ -13,6 +13,9 @@ spec: {{- if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} + loadBalancerSourceRanges: {{ toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} + {{- end }} ports: - port: {{ .Values.service.port }} {{- if .Values.service.nodePort }} diff --git a/chart/pyroscope/values.yaml b/chart/pyroscope/values.yaml index c941597..eeb6c58 100644 --- a/chart/pyroscope/values.yaml +++ b/chart/pyroscope/values.yaml @@ -89,6 +89,8 @@ service: annotations: {} # nodePort: # loadBalancerIP: + # -- If specified and supported by the platform, this will restrict traffic through the load-balancer to the specified client IPs. + loadBalancerSourceRanges: [] ingress: # -- Enables Ingress