From f196841da03f9485596626437cf5a52ba315c952 Mon Sep 17 00:00:00 2001 From: Vigith Maurice Date: Tue, 17 Sep 2024 10:37:07 -0700 Subject: [PATCH] doc: example for PVC (#2067) Signed-off-by: Vigith Maurice --- .../reference/configuration/volumes.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/user-guide/reference/configuration/volumes.md b/docs/user-guide/reference/configuration/volumes.md index 3e34adb123..4ac3affbf6 100644 --- a/docs/user-guide/reference/configuration/volumes.md +++ b/docs/user-guide/reference/configuration/volumes.md @@ -47,3 +47,28 @@ spec: - 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. + +```yaml +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 +``` \ No newline at end of file