mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-02 04:32:23 +00:00
Document k8s volume usage (#1896)
This commit is contained in:
parent
b49cf64949
commit
44b54db475
1 changed files with 17 additions and 0 deletions
|
@ -53,3 +53,20 @@ helm upgrade --install woodpecker-agent --namespace <namespace> woodpecker/woodp
|
||||||
# Uninstall
|
# Uninstall
|
||||||
helm delete woodpecker-agent
|
helm delete woodpecker-agent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Volumes
|
||||||
|
|
||||||
|
To mount volumes a persistent volume (PV) and persistent volume claim (PVC) are needed on the cluster which can be referenced in steps via the `volume:` option.
|
||||||
|
Assuming a PVC named "woodpecker-cache" exists, it can be referenced as follows in a step:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
"Restore Cache":
|
||||||
|
image: meltwater/drone-cache
|
||||||
|
volumes:
|
||||||
|
- woodpecker-cache:/woodpecker/src/cache
|
||||||
|
settings:
|
||||||
|
mount:
|
||||||
|
- "woodpecker-cache"
|
||||||
|
[...]
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue