From 4553d44779079eaa8c3a8afc2e944ea93c529882 Mon Sep 17 00:00:00 2001 From: Ivan Kolesnikov <94818447+ikolesnikovrevizto@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:51:55 +0700 Subject: [PATCH] add option to configure hostNetwork daemonset propertie Signed-off-by: Ivan Kolesnikov --- charts/fluent-operator/templates/fluentbit-fluentBit.yaml | 3 +++ charts/fluent-operator/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml index a09c648cd..670eee5d7 100644 --- a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml +++ b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml @@ -19,6 +19,9 @@ spec: {{- toYaml .Values.fluentbit.resources | nindent 4 }} fluentBitConfigName: fluent-bit-config {{- if .Values.fluentbit.namespaceFluentBitCfgSelector }} +{{- if .Values.fluentbit.hostNetwork }} + hostNetwork: {{ .Values.fluentbit.hostNetwork }} +{{- end }} namespaceFluentBitCfgSelector: {{ toYaml .Values.fluentbit.namespaceFluentBitCfgSelector | indent 4 }} {{- end }} diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index 226972827..d5f3e44a0 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -97,6 +97,8 @@ fluentbit: imagePullSecrets: [] # - name: "image-pull-secret" secrets: [] + # fluent-bit daemonset use host network + hostNetwork: false # Pod security context for Fluent Bit pods. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ podSecurityContext: {} # Security context for Fluent Bit container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/