[stable/logstash] Add loadBalancerSourceRanges (#12475)

Signed-off-by: Chris Kent <thirstydeveloper@gmail.com>
This commit is contained in:
Chris Kent
2019-06-14 11:30:23 -07:00
committed by Kubernetes Prow Robot
parent 597073886d
commit 4527ebe8a3
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ description: Logstash is an open source, server-side data processing pipeline
icon: https://www.elastic.co/assets/blt86e4472872eed314/logo-elastic-logstash-lt.svg
home: https://www.elastic.co/products/logstash
name: logstash
version: 1.12.0
version: 1.13.0
appVersion: 6.7.0
sources:
- https://www.docker.elastic.co
+1
View File
@@ -81,6 +81,7 @@ The following table lists the configurable parameters of the chart and its defau
| `service.annotations` | Service annotations | `{}` |
| `service.ports` | Ports exposed by service | beats |
| `service.loadBalancerIP` | The load balancer IP for the service | unset |
| `service.loadBalancerSourceRanges` | CIDR ranges to allow access to load balancer | unset |
| `service.clusterIP` | The cluster IP for the service | unset |
| `service.nodePort` | The nodePort for the service | unset |
| `service.externalTrafficPolicy` | Set externalTrafficPolicy | unset |
+8
View File
@@ -24,9 +24,17 @@ spec:
selector:
app: {{ template "logstash.name" . }}
release: {{ .Release.Name }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range $cidr := .Values.service.loadBalancerSourceRanges }}
- {{ $cidr }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
+2
View File
@@ -45,6 +45,8 @@ service:
# targetPort: http
# protocol: TCP
# loadBalancerIP: 10.0.0.1
# loadBalancerSourceRanges:
# - 192.168.0.1
ports:
# - name: syslog-udp
# containerPort: 1514