diff --git a/charts/fluent-operator/templates/fluent-operator-deployment.yaml b/charts/fluent-operator/templates/fluent-operator-deployment.yaml index 68eaafbf5..d3d3d36da 100644 --- a/charts/fluent-operator/templates/fluent-operator-deployment.yaml +++ b/charts/fluent-operator/templates/fluent-operator-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: fluent-operator + namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/component: operator app.kubernetes.io/name: fluent-operator diff --git a/charts/fluent-operator/templates/fluentbit-containerd-config.yaml b/charts/fluent-operator/templates/fluentbit-containerd-config.yaml index 5326b2471..b4e314aa3 100644 --- a/charts/fluent-operator/templates/fluentbit-containerd-config.yaml +++ b/charts/fluent-operator/templates/fluentbit-containerd-config.yaml @@ -5,6 +5,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: fluent-bit-containerd-config + namespace: {{ .Release.Namespace | quote }} data: containerd.lua: | function containerd( tag, timestamp, record) diff --git a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml index 5b5cd0bef..02a12b94e 100644 --- a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml +++ b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml @@ -4,6 +4,7 @@ apiVersion: fluentbit.fluent.io/v1alpha2 kind: FluentBit metadata: name: fluent-bit + namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/name: fluent-bit spec: diff --git a/charts/fluent-operator/templates/fluentbit-fluentbit-edge.yaml b/charts/fluent-operator/templates/fluentbit-fluentbit-edge.yaml index 897bffd93..4d9268202 100644 --- a/charts/fluent-operator/templates/fluentbit-fluentbit-edge.yaml +++ b/charts/fluent-operator/templates/fluentbit-fluentbit-edge.yaml @@ -3,7 +3,7 @@ apiVersion: fluentbit.fluent.io/v1alpha2 kind: FluentBit metadata: name: fluentbit-edge - namespace: fluent + namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/name: fluent-bit spec: @@ -40,4 +40,4 @@ spec: mountPropagation: HostToContainer name: host-proc readOnly: true -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/fluent-operator/templates/fluentbit-lua-config.yaml b/charts/fluent-operator/templates/fluentbit-lua-config.yaml index 16b7f90ce..0dbba4dd1 100644 --- a/charts/fluent-operator/templates/fluentbit-lua-config.yaml +++ b/charts/fluent-operator/templates/fluentbit-lua-config.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: fluent-bit-lua + namespace: {{ .Release.Namespace | quote }} data: systemd.lua: | function add_time(tag, timestamp, record) diff --git a/charts/fluent-operator/templates/fluentbit-output-loki.yaml b/charts/fluent-operator/templates/fluentbit-output-loki.yaml index 4d23d6c98..87c342690 100644 --- a/charts/fluent-operator/templates/fluentbit-output-loki.yaml +++ b/charts/fluent-operator/templates/fluentbit-output-loki.yaml @@ -19,6 +19,7 @@ apiVersion: v1 kind: Secret metadata: name: {{ $k |quote }} + namespace: {{ .Release.Namespace | quote }} type: Opaque data: value: {{ $v | b64enc | quote }} diff --git a/charts/fluent-operator/templates/fluentd-fluentd.yaml b/charts/fluent-operator/templates/fluentd-fluentd.yaml index 1a4b4608f..601752a7b 100644 --- a/charts/fluent-operator/templates/fluentd-fluentd.yaml +++ b/charts/fluent-operator/templates/fluentd-fluentd.yaml @@ -4,6 +4,7 @@ apiVersion: fluentd.fluent.io/v1alpha1 kind: Fluentd metadata: name: {{ .Values.fluentd.name }} + namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/name: fluentd spec: