kind: Deployment
apiVersion: apps/v1
metadata:
  name: efs-provisioner
  labels:
    app: efs-provisioner
spec:
  replicas: 1
  selector:
    matchLabels:
      app: efs-provisioner
  strategy:
    type: Recreate 
  template:
    metadata:
      labels:
        app: efs-provisioner
    spec:
      serviceAccount: efs-provisioner
      containers:
        - name: efs-provisioner
          image: quay.io/external_storage/efs-provisioner:latest
          env:
            - name: FILE_SYSTEM_ID
              value: fs-12345678
            - name: AWS_REGION
              value: us-east-1
            - name: PROVISIONER_NAME
              value: openshift.org/aws-efs
          volumeMounts:
            - name: pv-volume
              mountPath: /persistentvolumes
      volumes:
        - name: pv-volume
          nfs:
            server: fs-12345678.efs.us-east-1.amazonaws.com
            path: /persistentvolumes
