apiVersion: apps/v1
kind: Deployment
metadata:
  name: cdi-gpu-depl1
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cdi-gpu-depl1
  template:
    metadata:
      labels:
        app: cdi-gpu-depl1
    spec:
      nodeSelector:
        storage: "cdi"
      containers:
        - name: test-cdi-fpga
          image: busybox
          volumeMounts:
          - mountPath: "/cdi"
            name: cdi-volume1
          command: [ "sleep", "1000000" ]
      volumes:
        - name: cdi-volume1
          persistentVolumeClaim:
            claimName: gpuclaim
