Add missing fluentd secrets

This commit is contained in:
Stefan Reimer 2020-08-18 11:58:37 +01:00
parent 51921f3d47
commit 695318eada
2 changed files with 15 additions and 1 deletions

View File

@ -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 }}

View File

@ -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: