Skip to content

Volumes

Volumes can be mounted to udsource, udf or udsink containers.

Following example shows how to mount a ConfigMap to an udsource vertex, an udf vertex and an udsink vertex.

apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
  name: my-pipeline
spec:
  vertices:
    - name: my-source
      volumes:
        - name: my-udsource-config
          configMap:
            name: udsource-config
      source:
        udsource:
          container:
            image: my-source:latest
            volumeMounts:
              - mountPath: /path/to/my-source-config
                name: my-udsource-config
    - name: my-udf
      volumes:
        - name: my-udf-config
          configMap:
            name: udf-config
      udf:
        container:
          image: my-function:latest
          volumeMounts:
            - mountPath: /path/to/my-function-config
              name: my-udf-config
    - name: my-sink
      volumes:
        - name: my-udsink-config
          configMap:
            name: udsink-config
      sink:
        udsink:
          container:
            image: my-sink:latest
            volumeMounts:
              - mountPath: /path/to/my-sink-config
                name: my-udsink-config

PVC Example

Example to show how to attach a Persistent Volume Claim (PVC) to a container.

apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
  name: my-pipeline
spec:
  vertices:
    - name: my-source
      volumes:
        - name: mypd
          persistentVolumeClaim:
            claimName: myclaim
      source:
        udsource:
          container:
            image: my-source:latest
            volumeMounts:
              - mountPath: /path/to/my-source-config
                name: mypd