Skip to content

Commit

Permalink
Update k8s-cronjob.md
Browse files Browse the repository at this point in the history
Add an PVC example.
  • Loading branch information
itspluxstahre authored Sep 29, 2024
1 parent 1bf5615 commit 3729f0a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/k8s-cronjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ kubectl create secret generic fedifetcher \
--from-literal=token="<token>"
```

Define a PVC, for example:

```yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: fedifetcher-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
```
Now define the cronjob, and don't forget to define your PVCs:
```yaml
Expand Down

0 comments on commit 3729f0a

Please sign in to comment.