apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: local-storage-provisioner
  labels:
    helm.sh/chart: provisioner-3.0.0
    app.kubernetes.io/name: provisioner
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/instance: local-storage
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: provisioner
      app.kubernetes.io/instance: local-storage
  template:
    metadata:
      labels:
        app.kubernetes.io/name: provisioner
        app.kubernetes.io/instance: local-storage
      annotations:
        checksum/config: 191afa8d0ded8fa84902f5537e2f983ade7659610cd0105ac65b8f553f1f9b5b
    spec:
      serviceAccountName: local-storage-provisioner
      containers:
        - name: provisioner
          image: quay.io/external_storage/local-volume-provisioner:v2.3.4
          securityContext:
            privileged: true
          env:
          - name: MY_NODE_NAME
            valueFrom:
              fieldRef:
                fieldPath: spec.nodeName
          - name: MY_NAMESPACE
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
          - name: JOB_CONTAINER_IMAGE
            value: quay.io/external_storage/local-volume-provisioner:v2.3.4
          ports:
          - name: metrics
            containerPort: 8080
          volumeMounts:
            - name: provisioner-config
              mountPath: /etc/provisioner/config
              readOnly: true
            - name: provisioner-dev
              mountPath: /dev
            - name: local-storage
              mountPath: /storage/local-storage
              mountPropagation: HostToContainer
      volumes:
        - name: provisioner-config
          configMap:
            name: local-storage-provisioner-config
        - name: provisioner-dev
          hostPath:
            path: /dev
        - name: local-storage
          hostPath:
            path: /storage/local-storage