apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-csi-app
spec:
  selector:
    matchLabels:
      app: my-csi-app
  replicas: 1
  template:
    metadata:
      labels:
        app: my-csi-app
    spec:
      containers:
        - name: my-frontend
          image: busybox
          volumeMounts:
            - mountPath: "/data"
              name: my-hcloud-volume
          command: ["sleep", "1000000"]
      volumes:
        - name: my-hcloud-volume
          persistentVolumeClaim:
            claimName: csi-deployment-pvc
