diff --git a/stable/fluent-bit/Chart.yaml b/stable/fluent-bit/Chart.yaml index 6e6611777c..4bc164dfba 100755 --- a/stable/fluent-bit/Chart.yaml +++ b/stable/fluent-bit/Chart.yaml @@ -1,5 +1,5 @@ name: fluent-bit -version: 1.0.2 +version: 1.0.3 appVersion: 0.14.9 description: Fast and Lightweight Log/Data Forwarder for Linux, BSD and OSX keywords: diff --git a/stable/fluent-bit/README.md b/stable/fluent-bit/README.md index 7fbe73f21a..b8b8bc9a33 100644 --- a/stable/fluent-bit/README.md +++ b/stable/fluent-bit/README.md @@ -103,6 +103,8 @@ The following table lists the configurable parameters of the Fluent-Bit chart an | `serviceAccount.name` | The name of the ServiceAccount to use. | `NULL` | | `rawConfig` | Raw contents of fluent-bit.conf | `@INCLUDE fluent-bit-service.conf`
`@INCLUDE fluent-bit-input.conf`
`@INCLUDE fluent-bit-filter.conf`
` @INCLUDE fluent-bit-output.conf` | | `resources` | Pod resource requests & limits | `{}` | +| `hostNetwork` | Use host's network | `false` | +| `dnsPolicy` | Specifies the dnsPolicy to use | `ClusterFirst` | | `tolerations` | Optional daemonset tolerations | `NULL` | | `nodeSelector` | Node labels for fluent-bit pod assignment | `NULL` | | `metrics.enabled` | Specifies whether a service for metrics should be exposed | `false` | diff --git a/stable/fluent-bit/templates/daemonset.yaml b/stable/fluent-bit/templates/daemonset.yaml index b07a36f1dd..d12f19ad34 100644 --- a/stable/fluent-bit/templates/daemonset.yaml +++ b/stable/fluent-bit/templates/daemonset.yaml @@ -25,6 +25,8 @@ spec: imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }} {{- end }} + hostNetwork: {{ .Values.hostNetwork }} + dnsPolicy: {{ .Values.dnsPolicy }} serviceAccountName: {{ template "fluent-bit.serviceAccountName" . }} containers: - name: fluent-bit diff --git a/stable/fluent-bit/values.yaml b/stable/fluent-bit/values.yaml index d939224681..827ab413bb 100644 --- a/stable/fluent-bit/values.yaml +++ b/stable/fluent-bit/values.yaml @@ -139,6 +139,13 @@ resources: {} # cpu: 10m # memory: 8Mi +# When enabled, pods will bind to the node's network namespace. +hostNetwork: false + +# Which DNS policy to use for the pod. +# Consider switching to 'ClusterFirstWithHostNet' when 'hostNetwork' is enabled. +dnsPolicy: ClusterFirst + ## Node tolerations for fluent-bit scheduling to nodes with taints ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ ##