apiVersion: apps/v1
kind: Deployment
metadata:
  name: nfs-client-ssd-provisioner
  labels:
    app: nfs-client-ssd-provisioner
  namespace: default
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: nfs-client-ssd-provisioner
  template:
    metadata:
      labels:
        app: nfs-client-ssd-provisioner
    spec:
      serviceAccountName: nfs-client-provisioner
      containers:
        - name: nfs-client-ssd-provisioner
          image: k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
          volumeMounts:
            - name: nfs-client-ssd-root
              mountPath: /persistentvolumes
          env:
            - name: PROVISIONER_NAME
              value: ssd-provisioner
            - name: NFS_SERVER
              value: lvlv-EliteDesk.lan
            - name: NFS_PATH
              value: /mnt/ssd/k8s
      volumes:
        - name: nfs-client-ssd-root
          nfs:
            server: lvlv-EliteDesk.lan
            path: /mnt/ssd/k8s
