Skip to content

Commit

Permalink
Add support for service.loadBalancerSourceRanges and service.loadBala…
Browse files Browse the repository at this point in the history
…ncerClass (fluent#288)

Signed-off-by: Ori Rawlings <orawlings@egencia.com>

Signed-off-by: Ori Rawlings <orawlings@egencia.com>
  • Loading branch information
orirawlings authored Dec 2, 2022
1 parent 20a7133 commit 4d1fe46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.21.4
version: 0.21.5
appVersion: 2.0.6
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -22,5 +22,5 @@ maintainers:
email: steve.hipwell@gmail.com
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Update fluent-bit image to 2.0.6"
- kind: added
description: "Add support for service.loadBalancerSourceRanges and service.loadBalancerClass"
9 changes: 9 additions & 0 deletions charts/fluent-bit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ spec:
{{- if and (eq .Values.service.type "ClusterIP") (.Values.service.clusterIP) }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if (eq .Values.service.type "LoadBalancer")}}
{{- with .Values.service.loadBalancerClass}}
loadBalancerClass: {{ . }}
{{- end }}
{{- with .Values.service.loadBalancerSourceRanges}}
loadBalancerSourceRanges:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ securityContext: {}
service:
type: ClusterIP
port: 2020
loadBalancerClass:
loadBalancerSourceRanges: []
labels: {}
# nodePort: 30020
# clusterIP: 172.16.10.1
Expand Down

0 comments on commit 4d1fe46

Please sign in to comment.