Azure
Set up an Azure Blob Storage container for the DS data backup, and
configure the forgeops
artifacts with the location and credentials for the
container:
-
Create or identify an existing Azure Blob Storage container for the DS data backup. For more information on how to create and use Azure Blob Storage, see Quickstart: Create, download, and list blobs with Azure CLI.
-
Make sure that your current Kubernetes context references the CDM cluster and the
prod
namespace. -
Create secrets that contain credentials to write to cloud storage. The DS pods will use these when performing backups:
-
Get the name and access key of the Azure storage account that contains your storage container.
-
Create the
cloud-storage-credentials-cts
secret:$ kubectl create secret generic cloud-storage-credentials-cts \ --from-literal=AZURE_ACCOUNT_NAME=
my-storage-account-name
\ --from-literal=AZURE_ACCOUNT_KEY=my-storage-account-access-key
\ --dry-run --output yaml | kubectl apply --filename - -
Create the
cloud-storage-credentials-idrepo
secret:$ kubectl create secret generic cloud-storage-credentials-idrepo \ --from-literal=AZURE_ACCOUNT_NAME=
my-storage-account-name
\ --from-literal=AZURE_ACCOUNT_KEY=my-storage-account-access-key
\ --dry-run --output yaml | kubectl apply --filename -
-
-
Set the backup location in the configuration of the running CDM instance:
-
Get the
platform-config
configmap:$ kubectl get configmap platform-config --output yaml > my-config.yaml
-
In the output file from the preceding step, set the
DSBACKUP_DIRECTORY
parameter to the stringaz://
, followed by the name of the storage container:For example:
DSBACKUP_DIRECTORY
az://my-storage-container -
Apply the change to the running CDM:
$ kubectl apply --filename my-config.yaml
-
-
Apply the same change to your local Kustomization overlay file to ensure that the backup location is configured correctly the next time you deploy the CDM:
-
Change to the /path/to/forgeops/kustomize/base/kustomizeConfig directory.
-
Edit the kustomization.yaml file and set the
DSBACKUP_DIRECTORY
parameter to the stringaz://
, followed by the name of the storage container.For example:
DSBACKUP_DIRECTORY
az://my-storage-container
-
-
Restart the pods that perform backups, so that DS can obtain the backup location and the credentials needed to write to the backup location:
$ kubectl delete pods ds-cts-0 $ kubectl delete pods ds-idrepo-0
Now you are ready to schedule backups.