diff --git a/deploy/helm/sumologic/templates/events/fluentd/service-headless.yaml b/deploy/helm/sumologic/templates/events/fluentd/service-headless.yaml index fdcaa3f97e..47d37f72d8 100644 --- a/deploy/helm/sumologic/templates/events/fluentd/service-headless.yaml +++ b/deploy/helm/sumologic/templates/events/fluentd/service-headless.yaml @@ -6,6 +6,9 @@ metadata: labels: app: {{ template "sumologic.labels.app.events.service-headless" . }} {{- include "sumologic.labels.events" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.events.pod" . }} diff --git a/deploy/helm/sumologic/templates/events/fluentd/service.yaml b/deploy/helm/sumologic/templates/events/fluentd/service.yaml index b3362f53c6..17aafc0ea2 100644 --- a/deploy/helm/sumologic/templates/events/fluentd/service.yaml +++ b/deploy/helm/sumologic/templates/events/fluentd/service.yaml @@ -7,6 +7,9 @@ metadata: app: {{ template "sumologic.labels.app.events.service" . }} {{- include "sumologic.labels.scrape.events" . | nindent 4 }} {{- include "sumologic.labels.common" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.events.pod" . }} diff --git a/deploy/helm/sumologic/templates/logs/fluentd/service-headless.yaml b/deploy/helm/sumologic/templates/logs/fluentd/service-headless.yaml index e5124e3385..d24ae81c85 100644 --- a/deploy/helm/sumologic/templates/logs/fluentd/service-headless.yaml +++ b/deploy/helm/sumologic/templates/logs/fluentd/service-headless.yaml @@ -6,6 +6,9 @@ metadata: labels: app: {{ template "sumologic.labels.app.logs.service-headless" . }} {{- include "sumologic.labels.logs" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.logs.pod" . }} diff --git a/deploy/helm/sumologic/templates/logs/fluentd/service.yaml b/deploy/helm/sumologic/templates/logs/fluentd/service.yaml index 20946935fb..e523fd92e5 100644 --- a/deploy/helm/sumologic/templates/logs/fluentd/service.yaml +++ b/deploy/helm/sumologic/templates/logs/fluentd/service.yaml @@ -7,6 +7,9 @@ metadata: app: {{ template "sumologic.labels.app.logs.service" . }} {{- include "sumologic.labels.scrape.logs" . | nindent 4 }} {{- include "sumologic.labels.common" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.logs.pod" . }} diff --git a/deploy/helm/sumologic/templates/metrics/fluentd/service-headless.yaml b/deploy/helm/sumologic/templates/metrics/fluentd/service-headless.yaml index aff805086c..1737d3ec10 100644 --- a/deploy/helm/sumologic/templates/metrics/fluentd/service-headless.yaml +++ b/deploy/helm/sumologic/templates/metrics/fluentd/service-headless.yaml @@ -6,6 +6,9 @@ metadata: labels: app: {{ template "sumologic.labels.app.metrics.service-headless" . }} {{- include "sumologic.labels.metrics" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.metrics.pod" . }} diff --git a/deploy/helm/sumologic/templates/metrics/fluentd/service.yaml b/deploy/helm/sumologic/templates/metrics/fluentd/service.yaml index 9cb15decf4..7af4bd1e09 100644 --- a/deploy/helm/sumologic/templates/metrics/fluentd/service.yaml +++ b/deploy/helm/sumologic/templates/metrics/fluentd/service.yaml @@ -7,6 +7,9 @@ metadata: app: {{ template "sumologic.labels.app.metrics.service" . }} {{- include "sumologic.labels.scrape.metrics" . | nindent 4 }} {{- include "sumologic.labels.common" . | nindent 4 }} +{{- if .Values.fluentd.serviceLabels }} +{{ toYaml .Values.fluentd.serviceLabels | indent 4 }} +{{- end }} spec: selector: app: {{ template "sumologic.labels.app.metrics.pod" . }} diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 41b972c879..331634f86e 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -234,6 +234,9 @@ fluentd: ## Add custom annotations to all fluentd sts pods(logs, metrics, events) podAnnotations: {} + ## Add custom labels to all fluentd svc (logs, metrics, events) + serviceLabels: {} + ## Persist data to a persistent volume; When enabled, fluentd uses the file buffer instead of memory buffer. persistence: ## After changing this value please follow steps described in: