apiVersion: apps/v1
kind: DaemonSet
metadata:
  labels:
    k8s-app: nginx
    ssd: "true"
  name: nginx
spec:
  selector:
    matchLabels:
      name: nginx
  template:
    metadata:
      labels:
        app: nginx
        ssd: "true"
    spec:
      tolerations:
      # this toleration is to have the daemonset runnable on master nodes
      # remove it if your masters can't run pods
      - key: node-role.kubernetes.io/master
        operator: Exists
        effect: NoSchedule
      nodeSelector:
        ssd: "true"
      containers:
        - name: nginx
          image: nginx:1.19.0
    