aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitsnapshot/gitsnapshot-cronjob.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--grumpy/gitsnapshot/gitsnapshot-cronjob.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/grumpy/gitsnapshot/gitsnapshot-cronjob.yaml b/grumpy/gitsnapshot/gitsnapshot-cronjob.yaml
index 4447f60..192c64c 100644
--- a/grumpy/gitsnapshot/gitsnapshot-cronjob.yaml
+++ b/grumpy/gitsnapshot/gitsnapshot-cronjob.yaml
@@ -15,9 +15,11 @@ spec:
- command:
- gitsnap
- backup
- - /var/lib/git/repositories
+ - /opt/repos
- privategit
env:
+ - name: WAL_FILE
+ value: /opt/repos/git-snapshot.wal
- name: AWS_DEFAULT_REGION
valueFrom:
secretKeyRef:
@@ -37,12 +39,12 @@ spec:
imagePullPolicy: Always
name: gitsnapshot
volumeMounts:
- - mountPath: /var/lib/git
- name: gitolite-storage
+ - mountPath: /opt/repos
+ name: go-git-storage
readOnly: false
restartPolicy: Never
volumes:
- - name: gitolite-storage
+ - name: go-git-storage
persistentVolumeClaim:
- claimName: gitolite-storage
+ claimName: go-git-storage
schedule: '*/60 * * * *'