apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: cdi-block-device
  namespace: cdi
  labels:
    kubevirt.io: "cdi-block-device"
spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: cdi-block-device
        kubevirt.io: cdi-block-device
      name: cdi-block-device
    spec:
      serviceAccountName: cdi-sa
      containers:
        - name: block
          image: kubevirt/cdi-func-test-block-device:v1.9.0
          imagePullPolicy: IfNotPresent
          volumeMounts:
          - name: local-storage-device0
            mountPath: /local-storage/block-device
          - name: local-storage-device1
            mountPath: /local-storage/block-device1
          securityContext:
            privileged: true
          readinessProbe:
            exec:
              command:
              - cat
              - /ready
            initialDelaySeconds: 10
            periodSeconds: 5
      volumes:
        - name: local-storage-device0
          hostPath:
            path: /mnt/local-storage/block-device
            type: DirectoryOrCreate
        - name: local-storage-device1
          hostPath:
            path: /mnt/local-storage/block-device1
            type: DirectoryOrCreate
            
