Skip to content

Commit 3729f0a

Browse files
Update k8s-cronjob.md
Add an PVC example.
1 parent 1bf5615 commit 3729f0a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/k8s-cronjob.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ kubectl create secret generic fedifetcher \
1212
--from-literal=token="<token>"
1313
```
1414

15+
Define a PVC, for example:
16+
17+
```yaml
18+
apiVersion: v1
19+
kind: PersistentVolumeClaim
20+
metadata:
21+
name: fedifetcher-pvc
22+
spec:
23+
accessModes:
24+
- ReadWriteOnce
25+
resources:
26+
requests:
27+
storage: 1Gi
28+
```
29+
1530
Now define the cronjob, and don't forget to define your PVCs:
1631
1732
```yaml

0 commit comments

Comments
 (0)