Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 54 additions and 0 deletions.
  1. +12 −0 k8s/restore/README.md
  2. +42 −0 k8s/restore/git-restore-job.yml
@@ -0,0 +1,12 @@
# Restore Jobs

WARNING: These restore the latest snapshot to the target environment.
Running one of these will "revert" persistent volumes to their
last known state.


## Running a restore

kubectl apply -f name-restore-job.yml
kubectl get pod
kubectl logs name-restore-XXXX
@@ -0,0 +1,42 @@
apiVersion: batch/v1
kind: Job
metadata:
name: git-restore
namespace: default
labels:
app: git
spec:
template:
spec:
restartPolicy: Never
volumes:
- name: gerrit-data
persistentVolumeClaim:
claimName: gerrit-data-pvc
containers:
- name: persistsync
image: haiku/persistsync
args:
- restore
- gerrit-data
env:
- name: S3_KEY
valueFrom:
secretKeyRef:
name: s3-backup
key: s3_key
- name: S3_SECRET
valueFrom:
secretKeyRef:
name: s3-backup
key: s3_secret
- name: S3_BUCKET
value: persistent-snapshots
- name: TWOSECRET
valueFrom:
secretKeyRef:
name: s3-backup
key: twosecret
volumeMounts:
- name: gerrit-data
mountPath: /pvs/gerrit-data

No commit comments for this range

You can’t perform that action at this time.