Configuring NAR providers
Provide custom NARs to NiFi.
NAR Provider Volumes
Custom NARs can be provided to NiFi via Kubernetes Volumes. The volumes used for NARs must support RWX (Read Write Many) access mode, such as an NFS volume. You will need a Persistent Volume Claim which references your RWX volume, such as
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: [***YOUR VOLUME CLAIM NAME***]
spec:
storageClassName: "nfs"
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Mi
The above storage class will provision an NFS volume from the nfs-server-provisioner, if it’s installed in your cluster. Cloud provider classes like EFS or S3 on AWS can be used if their CSI drivers are installed.
Finally, provide your persistent volume claim to the NiFi spec as follows. You can optionally provide a subPath for the volume if you wish to specify only a certain directory within that volume.
spec:
narProvider:
volumes:
- volumeClaimName: [***YOUR VOLUME CLAIM NAME***]
subPath: [***OPTIONAL SUBPATH***]
- volumeClaimName: [***ANOTHER VOLUME CLAIM***]