apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: busybox-ds
  namespace: simple
  labels:
    app: busybox-ds
spec:
  selector:
    matchLabels:
      app: busybox-ds
  template:
    metadata:
      labels:
        app: busybox-ds
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: node-role.kubernetes.io/master
                operator: DoesNotExist
      containers:
      - image: busybox
        name: busybox-ds
        resources:
          limits:
            cpu: 1
            memory: 1Gi
          requests:
            cpu: 500m
            memory: 512Mi
      nodeSelector:
        beta.kubernetes.io/os: linux