Skip to content

Commit

Permalink
doc: example for PVC (#2067)
Browse files Browse the repository at this point in the history
Signed-off-by: Vigith Maurice <[email protected]>
  • Loading branch information
vigith authored and whynowy committed Sep 26, 2024
1 parent 7726cf4 commit 88d2a7a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/user-guide/reference/configuration/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 88d2a7a

Please sign in to comment.