One more nesting level
This commit is contained in:
parent
05e94f10f0
commit
acf1971976
2 changed files with 71 additions and 67 deletions
|
@ -6,42 +6,44 @@ spec:
|
|||
schedule: "0 0 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
volumes:
|
||||
- name: backup-storage
|
||||
emptyDir: {}
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: backup-container
|
||||
image: docker.sunet.se/drive/duplicity:bookworm-slim-1
|
||||
args: ["backup", "/backup_storage", "destination:${BUCKET}"]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACL
|
||||
value: private
|
||||
- name: RCLONE_CONFIG_DESTINATION_TYPE
|
||||
value: s3
|
||||
- name: RCLONE_CONFIG_DESTINATION_ENDPOINT
|
||||
value: s3.sto3.safedc.net
|
||||
- name: RCLONE_CONFIG_DESTINATION_PROVIDER
|
||||
value: Ceph
|
||||
volumeMounts:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- name: backup-storage
|
||||
mountPath: /backup_storage
|
||||
mountPropagation: HostToContainer
|
||||
- name: mount-container
|
||||
image: rclone/rclone:1.69.0
|
||||
securityContext:
|
||||
privileged: true
|
||||
args: ["mount", "source:${BUCKET}", "/backup_storage"]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_SOURCE_ACL
|
||||
value: private
|
||||
- name: RCLONE_CONFIG_SOURCE_TYPE
|
||||
value: s3
|
||||
- name: RCLONE_CONFIG_SOURCE_ENDPOINT
|
||||
value: s3.sto4.safedc.net
|
||||
- name: RCLONE_CONFIG_SOURCE_PROVIDER
|
||||
value: Ceph
|
||||
volumeMounts:
|
||||
- name: backup-storage
|
||||
mountPath: /backup_storage
|
||||
mountPropagation: Bidirectional
|
||||
emptyDir: {}
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: backup-container
|
||||
image: docker.sunet.se/drive/duplicity:bookworm-slim-1
|
||||
args: ["backup", "/backup_storage", "destination:${BUCKET}"]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACL
|
||||
value: private
|
||||
- name: RCLONE_CONFIG_DESTINATION_TYPE
|
||||
value: s3
|
||||
- name: RCLONE_CONFIG_DESTINATION_ENDPOINT
|
||||
value: s3.sto3.safedc.net
|
||||
- name: RCLONE_CONFIG_DESTINATION_PROVIDER
|
||||
value: Ceph
|
||||
volumeMounts:
|
||||
- name: backup-storage
|
||||
mountPath: /backup_storage
|
||||
mountPropagation: HostToContainer
|
||||
- name: mount-container
|
||||
image: rclone/rclone:1.69.0
|
||||
securityContext:
|
||||
privileged: true
|
||||
args: ["mount", "source:${BUCKET}", "/backup_storage"]
|
||||
env:
|
||||
- name: RCLONE_CONFIG_SOURCE_ACL
|
||||
value: private
|
||||
- name: RCLONE_CONFIG_SOURCE_TYPE
|
||||
value: s3
|
||||
- name: RCLONE_CONFIG_SOURCE_ENDPOINT
|
||||
value: s3.sto4.safedc.net
|
||||
- name: RCLONE_CONFIG_SOURCE_PROVIDER
|
||||
value: Ceph
|
||||
volumeMounts:
|
||||
- name: backup-storage
|
||||
mountPath: /backup_storage
|
||||
mountPropagation: Bidirectional
|
||||
|
|
|
@ -6,32 +6,34 @@ spec:
|
|||
schedule: "0 14 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
containers:
|
||||
- name: backup-container
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test-mirror"
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "destination-access-key-id"
|
||||
- name: RCLONE_CONFIG_DESTINATION_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "destination-secret-access-key"
|
||||
- name: mount-container
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test"
|
||||
- name: RCLONE_CONFIG_SOURCE_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "source-access-key-id"
|
||||
- name: RCLONE_CONFIG_SOURCE_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "source-secret-access-key"
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: backup-container
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test-mirror"
|
||||
- name: RCLONE_CONFIG_DESTINATION_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "destination-access-key-id"
|
||||
- name: RCLONE_CONFIG_DESTINATION_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "destination-secret-access-key"
|
||||
- name: mount-container
|
||||
env:
|
||||
- name: BUCKET
|
||||
value: "xrootd-test"
|
||||
- name: RCLONE_CONFIG_SOURCE_ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "source-access-key-id"
|
||||
- name: RCLONE_CONFIG_SOURCE_SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: xrootd-secret
|
||||
key: "source-secret-access-key"
|
||||
|
|
Loading…
Add table
Reference in a new issue