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: