31 lines
874 B
YAML
31 lines
874 B
YAML
|
{{- if eq .Values.kind "DaemonSet" }}
|
||
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: {{ include "fluent-bit.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "fluent-bit.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "fluent-bit.selectorLabels" . | nindent 6 }}
|
||
|
{{- with .Values.updateStrategy }}
|
||
|
updateStrategy:
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
template:
|
||
|
metadata:
|
||
|
annotations:
|
||
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||
|
{{- with .Values.podAnnotations }}
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
{{- include "fluent-bit.selectorLabels" . | nindent 8 }}
|
||
|
{{- with .Values.podLabels }}
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
{{- include "fluent-bit.pod" . | nindent 6 }}
|
||
|
{{- end }}
|