Elastic Beats: Update daemonset templates to match other daemonsets
This updates the metricbeat and filebeat daemonset templates to include both the appropriate node selector definitions as well as the ability to enable tolerations for the daemonsets in the same manner as fluentbit and the node exporter Change-Id: I474c4361c86287f05ab6078c1f81d671e902598d
This commit is contained in:
parent
d992de6245
commit
f970a1b3a7
@ -78,6 +78,9 @@ kind: DaemonSet
|
||||
metadata:
|
||||
name: filebeat
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "filebeat" "daemon" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
{{ tuple $envAll "filebeat" | include "helm-toolkit.snippets.kubernetes_upgrades_daemonset" | indent 2 }}
|
||||
template:
|
||||
metadata:
|
||||
@ -87,8 +90,12 @@ spec:
|
||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
{{ if $envAll.Values.pod.tolerations.filebeat.enabled }}
|
||||
{{ tuple $envAll "filebeat" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 6 }}
|
||||
{{ else }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.filebeat.node_selector_key }}: {{ .Values.labels.filebeat.node_selector_value }}
|
||||
{{ .Values.labels.filebeat.node_selector_key }}: {{ .Values.labels.filebeat.node_selector_value | quote }}
|
||||
{{ end }}
|
||||
initContainers:
|
||||
{{ tuple $envAll "filebeat" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
|
@ -204,6 +204,14 @@ pod:
|
||||
requests:
|
||||
memory: '100Mi'
|
||||
cpu: '100m'
|
||||
tolerations:
|
||||
filebeat:
|
||||
enabled: false
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/master
|
||||
operator: Exists
|
||||
- key: node-role.kubernetes.io/node
|
||||
operator: Exists
|
||||
mounts:
|
||||
filebeat:
|
||||
filebeat:
|
||||
|
@ -78,6 +78,9 @@ kind: DaemonSet
|
||||
metadata:
|
||||
name: metricbeat-node-modules
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "metricbeat" "daemon" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
{{ tuple $envAll "metricbeat" | include "helm-toolkit.snippets.kubernetes_upgrades_daemonset" | indent 2 }}
|
||||
template:
|
||||
metadata:
|
||||
@ -89,6 +92,12 @@ spec:
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
{{ if $envAll.Values.pod.tolerations.metricbeat.enabled }}
|
||||
{{ tuple $envAll "metricbeat" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 6 }}
|
||||
{{ else }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.metricbeat.node_selector_key }}: {{ .Values.labels.metricbeat.node_selector_value | quote }}
|
||||
{{ end }}
|
||||
initContainers:
|
||||
{{ tuple $envAll "metricbeat" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
|
@ -230,6 +230,14 @@ pod:
|
||||
requests:
|
||||
memory: '100Mi'
|
||||
cpu: '100m'
|
||||
tolerations:
|
||||
metricbeat:
|
||||
enabled: false
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/master
|
||||
operator: Exists
|
||||
- key: node-role.kubernetes.io/node
|
||||
operator: Exists
|
||||
mounts:
|
||||
metricbeat:
|
||||
metricbeat:
|
||||
|
Loading…
Reference in New Issue
Block a user