Sign inSign up

deinstapel/rook-obc-backup

By deinstapel

•Updated over 3 years ago

Image
0

561

deinstapel/rook-obc-backup repository overview

⁠rook-obc-backup

This project automates backups / replication of (rook) ObjectBucketClaims onto other rook Object Bucket Claim targets. It is designed to be run as Kubernetes Cron Job.

⁠How it works

This tool fetches all OBC objects from the Kubernetes API, creates target OBCs on the target cluster and mirrors all files from the source cluster to the target cluster. It creates all OBCs at the target cluster within TARGET_BUCKET_NAMESPACE and uses the following naming scheme: ${TARGET_BUCKET_PREFIX}-${OBC_NAMESPACE}-${OBC_NAME}.

⁠Configuration

This program is configured via environment variables.

VariableMeaningExample
SOURCE_S3_URLPublic reachable endpoint for downloading the S3 fileshttps://source.example.com⁠
SOURCE_KUBECONFIGPath to kubeconfig for source cluster, empty for in-cluster-auth.source_kubeconfig
TARGET_S3_URLPublic reachable endpoint for uploading the S3 fileshttps://target.example.com⁠
TARGET_KUBECONFIGPath to kubeconfig for target cluster, empty for in-cluster-auth.target_kubeconfig
TARGET_BUCKET_PREFIXPrefix used for target bucketsprefix
TARGET_BUCKET_NAMESPACENamespace for Rook OBC resourcesrook-ceph
TARGET_STORAGE_CLASS_NAMEStorage Class Name for Rook OBC resourcesspinning-rust

Tag summary

Content type

Image

Digest

sha256:29fd5b134…

Size

73.6 MB

Last updated

over 3 years ago

docker pull deinstapel/rook-obc-backup:v11