try with only 1 file
This commit is contained in:
@@ -69,17 +69,22 @@ spec:
|
|||||||
echo "Export done"
|
echo "Export done"
|
||||||
']
|
']
|
||||||
image: "bitnami/kubectl:1.21"
|
image: "bitnami/kubectl:1.21"
|
||||||
- name: move-attachements
|
|
||||||
command:
|
|
||||||
- "/bin/sh"
|
|
||||||
- "-c"
|
|
||||||
args: ['echo "sleep 5 min"; sleep 300;echo "end of sleep"; mv /data/backup/* /documents/ ;echo "move done"']
|
|
||||||
image: "busybox"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: gitea-export
|
- name: gitea-data
|
||||||
mountPath: /gitea-export
|
mountPath: /data
|
||||||
- name: documents
|
- name: gitea-documents-backup
|
||||||
mountPath: /documents
|
mountPath: /backup
|
||||||
|
# - name: move-attachements
|
||||||
|
# command:
|
||||||
|
# - "/bin/sh"
|
||||||
|
# - "-c"
|
||||||
|
# args: ['echo "sleep 5 min"; sleep 300;echo "end of sleep"; mv /data/backup/* /documents/ ;echo "move done"']
|
||||||
|
# image: "busybox"
|
||||||
|
# volumeMounts:
|
||||||
|
# - name: gitea-data
|
||||||
|
# mountPath: /data
|
||||||
|
# - name: documents
|
||||||
|
# mountPath: /documents
|
||||||
volumes:
|
volumes:
|
||||||
- name: gitea-data
|
- name: gitea-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -87,9 +92,6 @@ spec:
|
|||||||
- name: documents
|
- name: documents
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: gitea-documents-backup
|
claimName: gitea-documents-backup
|
||||||
- name: gitea-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: gitea-data
|
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user