Skip to content

Cloudflare R2 backupTarget #8087

Closed Answered by Hazmi35
Hazmi35 asked this question in Q&A
Mar 1, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

Ok. I managed to get it working:

Create longhorn-r2-backups secret with this data:

apiVersion: v1
kind: Secret
metadata:
  name: longhorn-r2-backups
  namespace: longhorn-system
type: Opaque
stringData:
  AWS_ACCESS_KEY_ID: YOUR_CF_R2_ACCESS_KEY 
  AWS_ENDPOINTS: https://<CF_ACCOUNT_ID>.r2.cloudflarestorage.com # or via jurisdiction-specific endpoint https://<CF_ACCOUNT_ID>.r2.cloudflarestorage.com
  AWS_SECRET_ACCESS_KEY: YOUR_CF_R2_SECRET_ACCESS_KEY

Check this documentation for more details

Then:

  1. Set backupTargetCredentialSecret option in Longhorn to longhorn-r2-backups
  2. Set backupTarget to "s3://<cf-r2-bucket-name>@auto/<path>" (auto is necessary)

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@derekbit
Comment options

@Hazmi35
Comment options

@Hazmi35
Comment options

@Hazmi35
Comment options

@Hazmi35
Comment options

Comment options

You must be logged in to vote
1 reply
@arinanto
Comment options

Answer selected by Hazmi35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants