Member-only story
S3 Backup for API Connect with Noobaa Storage Class from ODF
5 min readOct 13, 2023
Let’s explore the S3 Backup for API Connect.
The testing environment is on OpenShift with ODF installed.
Create Bucket with Noobaa
Create our backup bucket with ODF Noobaa Storage Class
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: backup-bucket-claim
namespace: apic
spec:
bucketName: backup-bucket #exact name
storageClassName: openshift-storage.noobaa.io
Check the Object Bucket (ob) is available,
$ oc get ob
NAME STORAGE-CLASS CLAIM-NAMESPACE CLAIM-NAME RECLAIM-POLICY PHASE AGE
obc-apic-backup-bucket-claim openshift-storage.noobaa.io Delete Bound 12m
Notice the Object Bucket is not namespace scoped, same as the Persistent Volume (pv).
The detail of the access to the bucket is defined in ConfigMap and Secret with the same name of the Object Bucket Claim (obc).
$ oc get cm backup-bucket-claim -o yaml
apiVersion: v1
data:
BUCKET_HOST: s3.openshift-storage.svc
BUCKET_NAME: backup-bucket
BUCKET_PORT: "443"
BUCKET_REGION: ""
BUCKET_SUBREGION: ""
kind: ConfigMap
...