umount after job finishes

This commit is contained in:
Micke Nordin 2025-02-07 14:58:10 +01:00
parent 3d8a5443e9
commit 330e9c22d3
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -15,8 +15,8 @@ spec:
containers:
- name: backup-container
image: docker.sunet.se/drive/duplicity:bookworm-slim-1
command: ["duplicity"]
args: ["/backup_storage", "rclone://destination:$(BUCKET)", "--no-encryption", "--full-if-older-than", "1M" ]
command: ["bash"]
args: ["-c", "duplicity /backup_storage rclone://destination:$(BUCKET) --no-encryption --full-if-older-than 1M; umount /backup_storage" ]
env:
- name: RCLONE_CONFIG_DESTINATION_ACL
value: private
@ -32,7 +32,7 @@ spec:
mountPropagation: HostToContainer
- name: mount-container
image: rclone/rclone:1.69.0
args: ["mount", "--allow-non-empty", "source:$(BUCKET)", "/backup_storage"]
args: ["mount", "--allow-non-empty", "--daemon", "source:$(BUCKET)", "/backup_storage"]
securityContext:
privileged: true
env: