PersistentVolumeClaim allow you mount exteral volumes into a pipeline step.
|  1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 | kind: pipeline
type: kubernetes
name: default
steps:
- name: shell
  image: debian
  volumes:
  - name: shared
    path: /shared
  commands:
  - df -h
volumes:
- name: shared
  claim:
    name: received-data-claim
    read_only: false # <true|false>
 | 
 
The first step is to define the external volume.
| 15
16
17
18
19
 | volumes:
- name: cache
  claim:
    name: received-data-claim
    read_only: false # <true|false>
 | 
 
The next step is to configure your pipeline step to mount the named external volume path into your container. The container path must also be an absolute path.
|  5
 6
 7
 8
 9
10
 | steps:
- name: shell
  image: debian
  volumes:
  - name: shared
    path: /shared
 |