Configuring volumes and mounts

Arbitrary volumes and volume mounts can be added to the NiFi container. This can be used to provide Python scripts or other artifacts to the NiFi runtime. Combined with a Cloud Storage Interface driver and Persistent Volume Claim, you can give NiFi access to files in cloud storage such as EFS or S3 buckets.

Define your custom volumes and mounts with the following spec:

spec:
  statefulset:
    volumes:
      - name: foo-volume
        persistentVolumeClaim: foo-pvc
    volumeMounts:
      - name: foo-volume
        mountPath: /opt/nifi/foo

To learn more about Kubernetes volumes, see Persistent volumes in the Kubernetes documentation.