apiVersion: apps/v1
kind: Deployment
metadata:
  name: csi-hostpath-test
  labels:
    app: nginx
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 1
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
        volumeMounts:
          - name: csi-hostpath-pvc
            mountPath: /data
      volumes:
        - name: csi-hostpath-pvc
          persistentVolumeClaim:
            claimName: csi-hostpath-pvc
