Skip to content

Commit

Permalink
feat(fluent-bit): Support ExternalIPs in Service (#500)
Browse files Browse the repository at this point in the history
Signed-off-by: Oscar Trullols <otrullols@nearbycomputing.com>
  • Loading branch information
oscartrullols committed May 7, 2024
1 parent c4dc805 commit d635acb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 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.46.4
version: 0.46.5
appVersion: 3.0.3
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: added
description: "Support setting extraContainers to a string value to enable full templating."
description: "Support setting Service's externalIPs."
3 changes: 3 additions & 0 deletions charts/fluent-bit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
{{- if and (eq .Values.service.type "ClusterIP") (.Values.service.clusterIP) }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if .Values.service.externalIPs }}
externalIPs: {{- toYaml .Values.service.externalIPs | nindent 4 }}
{{- end }}
{{- if (eq .Values.kind "DaemonSet") }}
{{- with .Values.service.internalTrafficPolicy }}
internalTrafficPolicy: {{ . }}
Expand Down
4 changes: 4 additions & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ service:
# prometheus.io/path: "/api/v1/metrics/prometheus"
# prometheus.io/port: "2020"
# prometheus.io/scrape: "true"
externalIPs: []
# externalIPs:
# - 2.2.2.2


serviceMonitor:
enabled: false
Expand Down

0 comments on commit d635acb

Please sign in to comment.