apiVersion: apps/v1
kind: Deployment
metadata:
  name: deployment-lvm
  labels:
    app: nginx
spec:
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      # schedulerName: local-volume-scheduler
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
        volumeMounts:
          - name: local-volume-csi-pvc
            mountPath: "/data"
      volumes:
        - name: local-volume-csi-pvc
          persistentVolumeClaim:
            claimName: local-volume-csi-pvc
