Quickstart Guide for Cloudcasa and Backblaze B2 Quickstart Guide for Cloudcasa and Backblaze B2

Quickstart Guide for Cloudcasa and Backblaze B2

Udara Gunawardena Udara Gunawardena

Introduction

Cloudcasa is Kubernetes backup and DR as a service. With it you can easily set up a backup policy for your Kubernetes environment that sends its data directly to your Backblaze B2 bucket. In the case of a disaster, you can quickly restore your Kubernetes state as it was with a click of a button. In this guide we will go over the steps required to set up Cloudcasa with your B2 object storage bucket. 

 

Prerequisites

  • An active Kubernetes environment
  • Kubernetes command-line tool, kubectl
  • Cloudcasa and Backblaze account

 

Guide

Get your B2 Application Keys and S3 Endpoint URL


1) Log in to your account at www.backblaze.com and click the Buckets in the left-hand column. Once here, click the Create a Bucket button.

 

bucketspage_blank.png

 

2) Give your Bucket a unique name. You will see a few settings here namely Default Encryption; enable this if you would like to enable server-side encryption. 

Note: We do not recommend using server-side encryption if you are using client-side encryption through Kasten. Server-side encryption will add latency to restores of files from B2. 

 

 

Screen_Shot_2022-03-09_at_4.06.05_PM.png

 

 

3) You will now see your Bucket on the Buckets page. Take note of the S3 Endpoint listed here for use later when setting up B2 with Cloudcasa.

 

Screen_Shot_2022-03-09_at_4.06.32_PM.png

 

4) Now click the App Keys link in the left-hand column to navigate to the App Keys page and click Add a New Application Key

 

 

addnewappkey2.png

 

5) Give your key a name, and access to the bucket you created. Then click Create New Key.

 

Screen_Shot_2022-03-09_at_4.11.04_PM.png

 

6) In a blue box on the App Keys page you’ll now see the keyID and applicationKey listed here, along with the S3 Endpoint we saw when making the bucket. Make sure you copy the keyID and applicationKey listed somewhere safe as the applicationKey will NOT be available again to view once you leave the page.

 

Screen_Shot_2022-03-09_at_4.11.16_PM.png

Now that you have the applicationKey, keyID, and S3 URL Endpoint you are ready to start setting up the Bucket as a storage target in Cloudcasa.

 

Setting Up Cloudcasa 

Add Backblaze B2 to your Cloudcasa storage buckets. 

 

1) Select My Storage under the Configuration tab on your homepage 

Screen_Shot_2022-03-09_at_4.36.25_PM.jpg

 

2) Select Add Storage at the top right. Now go ahead and give your storage a friendly name and select S3 as Provider Type. Once you select S3 you will see some new options appear that allow you to fill in the B2 bucket details you collected above. 

Screen_Shot_2022-03-01_at_1.23.58_PM.png

3) Last step would be to configure Backblaze as your default backup destination. Select Settings on the left. Select My Storage and then the Backblaze bucket you just set up. 

 

Screen_Shot_2022-03-01_at_1.31.10_PM.png

 

Add your cluster to Cloudcasa

During this process, you will also install its backup agent on your Kubernetes cluster. 

 

1) Log into your Catalogic portal and select Protection

Screen_Shot_2022-03-01_at_1.19.51_PM.jpg

2) Select Add cluster and give your cluster a name

Screen_Shot_2022-03-01_at_1.20.05_PM.jpg

3) Give this cluster a name and make sure your Backblaze cloud storage is selected under the Advanced options

Screen_Shot_2022-03-01_at_1.20.14_PM.png

 

4) You will now see a command you will need to run on your Kubernetes cluster through Kubectl. This will install the agent and relate it to your Cloudcasa environment.

 

Screen_Shot_2022-03-01_at_1.20.33_PM.jpg

Screen_Shot_2022-03-01_at_1.21.40_PM.jpg

5) Once successfully deployed you will see your Cluster saved and now in an Active state.

 

Screen_Shot_2022-03-01_at_1.21.51_PM.jpg

 

Create and run your cluster backup policy

 

1) Select the Backups tab related to your newly created cluster profile. Give it a name and make sure the correct cluster is selected. 

 

Screen_Shot_2022-03-01_at_1.22.04_PM.png

 

2) Configure your backups settings and schedule policy. Here you can decide whether to backup the entire cluster or rather specific namespaces. 

Screen_Shot_2022-03-01_at_1.22.15_PM.pngScreen_Shot_2022-03-01_at_1.23.05_PM.png

 

Screen_Shot_2022-03-01_at_1.23.12_PM.png

3) Go ahead and save the job and you are now ready to run your first backup! You can either wait for your schedule to run or If you would like to test go ahead and select Run now on the home page next to your backup job. Select Run at the bottom right. 

Screen_Shot_2022-03-01_at_1.25.17_PM.jpg

Screen_Shot_2022-03-09_at_5.10.43_PM.png

 

Congratulations your cluster is now protected by Cloudcasa and Backblaze B2. To learn more about Cloudcasa and how to do restores please visit their detailed guide