# Temporary pod for restoring a deploy/backup.sh tarball onto the
# gitfed-data PVC — see deploy/k8s/README.md "Restoring from a backup".
# Not part of the normal deployment: apply only while restoring, then
# delete it. Deliberately not gitfed's own image — this only ever needs
# `tar`, and running something other than gitfed-server/gitfed-web against
# a live PVC while the real deployment is scaled down keeps the two from
# ever fighting over the bbolt file's exclusive lock.
apiVersion: v1
kind: Pod
metadata:
name: gitfed-restore
namespace: gitfed
spec:
restartPolicy: Never
containers:
- name: restore
image: debian:bookworm-slim
command: ["sleep", "infinity"]
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: gitfed-data