mirror of https://git.rancher.io/charts
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
{{- if .Values.additionalLoggingSources.rke2.enabled }}
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: "{{ .Release.Name }}-rke2-journald-aggregator"
|
|
namespace: "{{ .Release.Namespace }}"
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
name: {{ .Release.Name }}-rke2-journald-aggregator
|
|
template:
|
|
metadata:
|
|
name: "{{ .Release.Name }}-rke2-journald-aggregator"
|
|
namespace: "{{ .Release.Namespace }}"
|
|
labels:
|
|
name: {{ .Release.Name }}-rke2-journald-aggregator
|
|
spec:
|
|
containers:
|
|
- name: fluentd
|
|
image: "{{ template "system_default_registry" . }}{{ .Values.images.fluentbit.repository }}:{{ .Values.images.fluentbit.tag }}"
|
|
volumeMounts:
|
|
- mountPath: /etc/rancher/logging/logs/
|
|
name: logdir
|
|
- mountPath: /fluent-bit/etc/
|
|
name: config
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: logdir
|
|
hostPath:
|
|
path: /etc/rancher/logging/logs/
|
|
- name: config
|
|
configMap:
|
|
name: "{{ .Release.Name }}-rke2"
|
|
{{- end }}
|