Update k8s-cronjob.md

Add an PVC example.
This commit is contained in:
Plux Stahre 2024-09-29 03:46:17 +02:00 committed by GitHub
parent 1bf5615e69
commit 3729f0a0df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,21 @@ kubectl create secret generic fedifetcher \
--from-literal=token="<token>" --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: Now define the cronjob, and don't forget to define your PVCs:
```yaml ```yaml