KubeZero/charts/kubezero/templates/logging.yaml

113 lines
2.7 KiB
YAML
Raw Normal View History

2020-11-26 13:21:10 +00:00
{{- define "logging-values" }}
{{- if or .Values.logging.es .Values.logging.kibana }}
2020-11-26 13:21:10 +00:00
eck-operator:
enabled: true
{{- with index .Values "logging" "eck-operator" }}
2020-11-26 13:21:10 +00:00
{{- toYaml . | nindent 2 }}
{{- end }}
2020-11-26 13:21:10 +00:00
{{- end }}
{{- if .Values.logging.elastic_password }}
elastic_password: {{ .Values.logging.elastic_password }}
{{- end }}
{{- if .Values.logging.version }}
version: {{ .Values.logging.version }}
{{- end }}
{{- if .Values.logging.fullnameOverride }}
fullnameOverride: {{ .Values.logging.fullnameOverride }}
{{- end }}
{{- if .Values.logging.es }}
es:
{{- if .Values.logging.es.nodeSets }}
nodeSets:
{{- with .Values.logging.es.nodeSets }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
prometheus: {{ .Values.metrics.enabled }}
{{- if .Values.logging.es.s3Snapshot }}
s3Snapshot:
{{- with .Values.logging.es.s3Snapshot }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.logging.kibana }}
kibana:
{{- with .Values.logging.kibana }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
2021-03-19 15:16:13 +00:00
{{- with .Values.logging.fluentd }}
2020-11-26 13:21:10 +00:00
fluentd:
2021-03-19 15:16:13 +00:00
enabled: {{ .enabled }}
replicaCount: {{ default 1 .replicaCount }}
2020-11-26 13:21:10 +00:00
metrics:
serviceMonitor:
2021-03-19 15:16:13 +00:00
enabled: {{ $.Values.metrics.enabled }}
url: {{ .url }}
{{- if .output }}
2020-11-26 13:21:10 +00:00
output:
2021-03-19 15:16:13 +00:00
host: {{ .output.host }}
2020-11-26 13:21:10 +00:00
{{- end }}
2021-03-19 15:16:13 +00:00
{{- with .affinity }}
affinity:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .extraEnvVars }}
2020-11-26 13:21:10 +00:00
extraEnvVars:
2021-03-19 15:16:13 +00:00
{{- toYaml .extraEnvVars | nindent 8 }}
2020-11-26 13:21:10 +00:00
{{- end }}
2021-03-19 15:16:13 +00:00
{{- if and .istio $.Values.istio.enabled }}
2020-11-26 13:21:10 +00:00
istio:
2021-03-19 15:16:13 +00:00
{{- with .istio }}
2020-11-26 13:21:10 +00:00
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- if index .Values "logging" "fluent-bit" }}
fluent-bit:
enabled: {{ index .Values.logging "fluent-bit" "enabled" }}
serviceMonitor:
enabled: {{ .Values.metrics.enabled }}
{{- if index .Values.logging "fluent-bit" "config" }}
config:
{{- with index .Values.logging "fluent-bit" "config" }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- define "logging-argo" }}
ignoreDifferences:
- group: admissionregistration.k8s.io
kind: ValidatingWebhookConfiguration
jsonPointers:
- /webhooks/0/clientConfig/caBundle
- /webhooks/1/clientConfig/caBundle
- /webhooks/2/clientConfig/caBundle
- /webhooks/3/clientConfig/caBundle
- /webhooks/4/clientConfig/caBundle
- /webhooks/5/clientConfig/caBundle
- /webhooks/6/clientConfig/caBundle
- /webhooks/7/clientConfig/caBundle
- /webhooks/8/clientConfig/caBundle
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jsonPointers:
- /status
{{- end }}
2020-11-26 13:21:10 +00:00
{{ include "kubezero-app.app" . }}