apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: workstation
spec:
  template:
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: workstation-staging.cluster.local/schedulable
                operator: In
                values:
                - "true"
      dnsConfig:
        nameservers:
        - 8.8.8.8
        - 8.8.4.4
        # searches:
        # - ns1.svc.cluster-domain.example
        # - my.dns.search.suffix
        # options:
        # - name: ndots
        #   value: "2"
        # - name: edns0
      dnsPolicy: None
      tolerations:
      - key: workstation.cluster.local
        operator: Equal
        value: 'true'
        effect: NoSchedule
      - key: edge.cluster.local/not-schedulable
        operator: Equal
        effect: NoSchedule
