backup.pod.yaml 612 B

12345678910111213141516171819202122232425262728
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: restic-cli
  5. spec:
  6. containers:
  7. - command: ["/bin/sleep"]
  8. args: ["infinity"]
  9. image: restic/restic:0.18.1
  10. imagePullPolicy: IfNotPresent
  11. name: restic-cli
  12. volumeMounts:
  13. - name: restic-repo-vol
  14. mountPath: /data/repo
  15. - name: backup-data-vol
  16. mountPath: /data/glusterfs
  17. volumes:
  18. - name: restic-repo-vol
  19. hostPath:
  20. path: /data/backup
  21. type: Directory
  22. - name: backup-data-vol
  23. hostPath:
  24. path: /mnt
  25. type: Directory
  26. restartPolicy: Never
  27. nodeSelector:
  28. kubernetes.io/hostname: raspberrypi4