aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitsnapshot
diff options
context:
space:
mode:
Diffstat (limited to 'grumpy/gitsnapshot')
-rw-r--r--grumpy/gitsnapshot/gitsnapshot-cronjob.yaml12
-rw-r--r--grumpy/gitsnapshot/gitsnapshot-test-connection-pod.yaml13
-rw-r--r--grumpy/gitsnapshot/kustomization.yaml12
3 files changed, 13 insertions, 24 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 * * * *'
diff --git a/grumpy/gitsnapshot/gitsnapshot-test-connection-pod.yaml b/grumpy/gitsnapshot/gitsnapshot-test-connection-pod.yaml
deleted file mode 100644
index b5ffa79..0000000
--- a/grumpy/gitsnapshot/gitsnapshot-test-connection-pod.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-apiVersion: v1
-kind: Pod
-metadata:
- name: gitsnapshot-test-connection
-spec:
- containers:
- - args:
- - gitsnapshot:80
- command:
- - wget
- image: busybox
- name: wget
- restartPolicy: Never
diff --git a/grumpy/gitsnapshot/kustomization.yaml b/grumpy/gitsnapshot/kustomization.yaml
index 1bc630e..02781e3 100644
--- a/grumpy/gitsnapshot/kustomization.yaml
+++ b/grumpy/gitsnapshot/kustomization.yaml
@@ -2,19 +2,19 @@
commonLabels:
app.kubernetes.io/instance: gitsnapshot
app.kubernetes.io/name: gitsnapshot
- app.kubernetes.io/version: 0.0.1
+
+labels:
+- includeTemplates: true
+ pairs:
+ app.kubernetes.io/version: 0.1.0
# Images modify the tags for images without
# creating patches.
images:
- name: gitsnapshot
- newName: public.ecr.aws/s0f9o2k5/git-snapshot
+ newName: public.ecr.aws/s0f9o2k5/git-snapshot
newTag: v0.0.5
-# Value of this field is prepended to the
-# names of all resources
-namePrefix: gitsnapshot
-
# List of resource files that kustomize reads, modifies
# and emits as a YAML string
resources: