From 695318eada60bd1e911e5bc3a7ae335584ec1a25 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 18 Aug 2020 11:58:37 +0100 Subject: [PATCH] Add missing fluentd secrets --- .../kubezero-logging/templates/fluentd/secret.yaml | 12 ++++++++++++ charts/kubezero-logging/values.yaml | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 charts/kubezero-logging/templates/fluentd/secret.yaml diff --git a/charts/kubezero-logging/templates/fluentd/secret.yaml b/charts/kubezero-logging/templates/fluentd/secret.yaml new file mode 100644 index 00000000..761cc92a --- /dev/null +++ b/charts/kubezero-logging/templates/fluentd/secret.yaml @@ -0,0 +1,12 @@ +{{- if .Values.fluentd.enabled }} +apiVersion: v1 +kind: Secret +type: Opaque +metadata: + name: {{ template "kubezero-lib.fullname" $ }}-fluentd-secret + namespace: {{ .Release.Namespace }} + labels: +{{ include "kubezero-lib.labels" . | indent 4 }} +data: + shared_key: {{ .Values.fluentd.shared_key | b64enc | quote }} +{{- end }} diff --git a/charts/kubezero-logging/values.yaml b/charts/kubezero-logging/values.yaml index 9aa6ab14..8041db09 100644 --- a/charts/kubezero-logging/values.yaml +++ b/charts/kubezero-logging/values.yaml @@ -72,6 +72,8 @@ fluentd: output: host: logging-es-http + shared_key: "cloudbender" + env: OUTPUT_USER: elastic OUTPUT_SSL_VERIFY: "false" @@ -85,7 +87,7 @@ fluentd: - name: FLUENTD_SHARED_KEY valueFrom: secretKeyRef: - name: fluentd-config + name: logging-fluentd-secret key: shared_key extraVolumes: