2020-12-08 15:05:25 +00:00
|
|
|
{{- if eq .Values.kind "DaemonSet" }}
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: {{ include "fluent-bit.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "fluent-bit.labels" . | nindent 4 }}
|
2021-08-27 10:14:46 +00:00
|
|
|
{{- with .Values.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-12-08 15:05:25 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "fluent-bit.selectorLabels" . | nindent 6 }}
|
|
|
|
{{- with .Values.updateStrategy }}
|
|
|
|
updateStrategy:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-04-12 11:14:31 +00:00
|
|
|
{{- with .Values.minReadySeconds }}
|
|
|
|
minReadySeconds: {{ . }}
|
|
|
|
{{- end }}
|
2020-12-08 15:05:25 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
2021-03-05 15:53:02 +00:00
|
|
|
checksum/luascripts: {{ include (print $.Template.BasePath "/configmap-luascripts.yaml") . | sha256sum }}
|
2020-12-08 15:05:25 +00:00
|
|
|
{{- 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 }}
|