Kubespec Logo kubespec.dev

apps/v1

Namespaced Resource

DaemonSet

        DaemonSet represents the configuration of a daemon set.
      

Click on Property Name to show the description, and Pink Types to expand schema.

Required properties are marked with *

Change History

Kubernetes v1.32

+2~81

Kubernetes v1.31

+7-1~38

Kubernetes v1.30

+7~19

Kubernetes v1.29

+16-1~4

Kubernetes v1.28

+3~24

Kubernetes v1.27

+3~9

Kubernetes v1.26

+7~5

Kubernetes v1.25

+4-3~7

Kubernetes v1.24

+1~112

Kubernetes v1.23

+10~75

Kubernetes v1.22

+8~31

Kubernetes v1.21

+14-1~11

Kubernetes v1.20

~4

Kubernetes v1.19

+6~18

Kubernetes v1.18

+1~18

Kubernetes v1.17

~13

Kubernetes v1.16

+12-4~5

Kubernetes v1.15

+6~10

Kubernetes v1.14

+6~7

Kubernetes v1.13

+1~2

Kubernetes v1.12

+3~11

Kubernetes v1.11

+6~3

Examples

There are 2 examples of DaemonSet that you can use as a starting point to create your own.

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: fluentd-elasticsearch
  namespace: monitoring # DaemonSet is a namespaced resource
spec:
  selector:
    matchLabels:
      name: fluentd-elasticsearch
  template:
    metadata:
      labels:
        name: fluentd-elasticsearch
    spec:
      tolerations:
        # these tolerations are to have the daemonset runnable on control plane nodes
        # remove them if your control plane nodes should not run pods
        - key: node-role.kubernetes.io/control-plane
          operator: Exists
          effect: NoSchedule
        - key: node-role.kubernetes.io/master
          operator: Exists
          effect: NoSchedule
      containers:
        - name: fluentd-elasticsearch
          image: quay.io/fluentd_elasticsearch/fluentd:v2.5.2

Other useful resources