Add back security context

This commit is contained in:
Micke Nordin 2025-02-07 15:16:18 +01:00
parent 3622887a3e
commit fa413ff7ee
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -13,6 +13,8 @@ spec:
- name: backup-container
image: docker.sunet.se/drive/duplicity:bookworm-slim-1
command: ["bash"]
securityContext:
privileged: true
args: ["-c", "mkdir /backup_storage; rclone mount --daemon source:$(SOURCE_BUCKET) /backup_storage; duplicity /backup_storage rclone://destination:$(DESTINATION_BUCKET) --no-encryption --full-if-older-than 1M; umount /backup_storage"]
env:
- name: RCLONE_CONFIG_DESTINATION_ACL