Skip to content

rclone sync #826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions resources/operations/rclone-bucket-replicate/job-template.yaml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ description: |
parameters:
- name: NAME
description: The name of the Job.
value: 'rclone-bucket-replicate'
value: 'rclone-bucket-replicate-sync'
- name: NAMESPACE
description: The namespace where the Job should run.
value: 'observatorium-operations'
@@ -24,14 +24,8 @@ parameters:
value: 'info'
- name: CPU_REQUEST
value: '1'
- name: CPU_LIMIT
value: '2'
- name: MEMORY_REQUEST
value: '500Mi'
- name: MEMORY_LIMIT
value: '3Gi'
- name: MAX_AGE
value: '4w'
- name: OBJ_STORE_CONFIG_SECRET_NAME
- name: RCLONE_CONFIG_MAP_NAME
- name: SOURCE_ENDPOINT
@@ -49,7 +43,7 @@ objects:
app.kubernetes.io/part-of: observatorium
spec:
parallelism: 1
backoffLimit: 1
backoffLimit: 1000
template:
spec:
serviceAccountName: ${SERVICE_ACCOUNT_NAME}
@@ -60,9 +54,6 @@ objects:
requests:
memory: ${MEMORY_REQUEST}
cpu: ${CPU_REQUEST}
limits:
memory: ${MEMORY_LIMIT}
cpu: ${CPU_LIMIT}
ports:
- containerPort: 10902
name: metrics
@@ -72,10 +63,9 @@ objects:
- configMapRef:
name: ${RCLONE_CONFIG_MAP_NAME}
args:
- 'copy'
- 'sync'
- ${SOURCE_ENDPOINT}:${SOURCE_BUCKET}
- ${TARGET_ENDPOINT}:${TARGET_BUCKET}
- '--max-age=${MAX_AGE}'
- '--rc'
- '--rc-enable-metrics'
- '--rc-addr=:10902'