DaemonSet — runs a Pod on every (or specific) Node.
1apiVersion: apps/v12kind: DaemonSet3metadata:4 name: fluentd5 namespace: kube-system6spec:7 selector:8 matchLabels:9 name: fluentd10 template:11 metadata:12 labels:13 name: fluentd14 spec:15 tolerations:16 - key: node-role.kubernetes.io/control-plane17 effect: NoSchedule18 - key: node.kubernetes.io/not-ready19 effect: NoExecute20 nodeSelector:21 node-type: worker22 containers:23 - name: fluentd24 image: fluent/fluentd-kubernetes-daemonset:v1.1625 resources:26 limits:27 memory: 200Mi28 cpu: 200m29 requests:30 memory: 100Mi31 cpu: 100m32 volumeMounts:33 - name: varlog34 mountPath: /var/log35 readOnly: true36 - name: containers37 mountPath: /var/lib/docker/containers38 readOnly: true39 volumes:40 - name: varlog41 hostPath:42 path: /var/log43 - name: containers44 hostPath:45 path: /var/lib/docker/containers
Use cases:
Update Strategy: