diff --git a/charts/lighthouse/templates/webhooks-service.yaml b/charts/lighthouse/templates/webhooks-service.yaml index 47408e968..c521671d3 100644 --- a/charts/lighthouse/templates/webhooks-service.yaml +++ b/charts/lighthouse/templates/webhooks-service.yaml @@ -15,3 +15,6 @@ spec: name: http selector: app: {{ template "webhooks.name" . }} +{{ with .Values.webhooks.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: {{ toYaml . | nindent 2 }} +{{ end }} diff --git a/charts/lighthouse/values.yaml b/charts/lighthouse/values.yaml index dd083d255..1999c5692 100644 --- a/charts/lighthouse/values.yaml +++ b/charts/lighthouse/values.yaml @@ -156,6 +156,8 @@ webhooks: externalPort: 80 internalPort: 8080 annotations: {} + # Uncomment to set loadBalancerSourceRanges for service + # loadBalancerSourceRanges: [] resources: # webhooks.resources.limits -- Resource limits applied to the webhooks pods