Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion torchlite-mongodb-backup/dev/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: mongodb-backup
namespace: torchlite-dev
spec:
schedule: "*/5 * * * *" # Runs backup every 5 minutes for testing
schedule: "00 04 1 * *" # Runs backup at 4 am on the first of every month
jobTemplate:
spec:
template:
spec:
securityContext:
fsGroup: 999
runAsUser: 999
runAsGroup: 999
containers:
- name: mongodump
image: quay.io/mongodb/mongodb-community-server:6.0.5-ubi8
Expand Down