Add missing fluentd secrets
This commit is contained in:
parent
51921f3d47
commit
695318eada
12
charts/kubezero-logging/templates/fluentd/secret.yaml
Normal file
12
charts/kubezero-logging/templates/fluentd/secret.yaml
Normal 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 }}
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user