k10restore

by Kasten by Veeam

Helm chartv8.0.14App 8.0.14Verified publisher

A Helm chart for restoring K10 from a backup

About this chart

Kasten's K10 Restore Helm chart.

Kasten's k10restore is a helm chart that is used to restore the K10's catalog and recover from disaster.

Sequence of actions

Recovering from a K10 backup involves the following sequence of actions

  • Create a Kubernetes Secret, k10-dr-secret, using the passphrase provided while enabling Disaster Recovery.
  • Install a fresh K10 instance in the same namespace as the above Secret.
  • Create a location profile pointing to the objectStore location or NFS file storage location where previous K10 backups are stored.
  • Restoring the K10 backup by installing kasten/k10restore helm application.
  • Uninstalling the kasten/k10restore helm release after the recovery is succssful.

Installing the Chart

Additionally, K10 images are available in Platform One's Iron Bank hardened container registry. To install using these images, follow the instructions found here.

Requirements

  • Source cluster ID
  • Name of Location Profile that has the data from the DR policy.
   #Install the helm chart that creates the K10 restore job and wait for the completion of the `k10-restore` job
   #Assumes that K10 is installed in the 'kasten-io' namespace.
   $ helm install k10-restore kasten/k10restore --namespace=kasten-io \
       --set sourceClusterID=<source-clusterID> \
       --set profile.name=<location-profile-name>

Where sourceClusterID is the UID of the default namespace from the source cluster. And profile.name is the name of profile that was created in new installation of K10.

For an OpenShift environment, --set scc.create=true is also required.

Installation of kasten/k10restore helm chart eventually creates a restore job. And the restore job restores the source cluster's catalog and artifact information in the new cluster. If the restore of other resources (options include profiles, policies, secrets) needs to be skipped, the skipResource flag can be used.

   #e.g. to skip the restore of profiles and policies, the helm install command will be as follows:
   $ helm install k10-restore kasten/k10restore --namespace=kasten-io \
       --set sourceClusterID=<source-clusterID> \
       --set profile.name=<location-profile-name> \
       --set skipResource="profiles\,policies"

If the Disaster Recovery Location Profile was configured for Immutable Backups, K10 can be restored to an earlier point in time. The protection period chosen, while creating the profile dictates how far in the past the point in time can be. Set the pointInTime helm value to the desired time stamp.

   #e.g. to restore K10 to 15:04:05 UTC on Jan 2, 2022:
   $ helm install k10-restore kasten/k10restore --namespace=kasten-io \
       --set sourceClusterID=<source-clusterID> \
       --set profile.name=<location-profile-name> \
       --set pointInTime="2022-01-02T15:04:05Z"

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the k10restore application

$ helm delete k10restore --namespace=kasten-io

Configuration

The following table lists the configurable parameters of the K10restore chart and their default values.

ParameterDescriptionDefault
airgapped.repositorySpecify the image repository for offline (airgapped) installationNone
imagePullSecretsThe provided secret will be used as imagePullSecret for pulling the image from a private image registry[]
profile.nameSpecify the location profile name to be used for restore''
pointInTimeSpecify the value to the desired timestamp when using immutable backups''
rbac.createSpecifies whether to enable RBAC with a specific cluster role and binding for K10restoretrue
restore.timeoutSpecifies timeout for the entire k10 DR recovery process in minutes. Minimum timeout value that should be used against this parameter is 5 minutes90
scc.createSpecifies whether to create a SecurityContextConstraints for K10restore ServiceAccountfalse
secrets.awsIamRoleSpecifies whether an AWS IAM role should be used for accessing the location profile''
serviceAccount.createSpecifies whether a ServiceAccount should be created and used by the k10restore charttrue
serviceAccount.nameThe name of the ServiceAccount to use. If it's not set and create is true, a name is derived using the release and chart names. If value for name is provided and create is false a ServiceAccount with the specified name must exist in the cluster''
skipResourceSpecify resouces to be skipped during the restore. Supported values are profiles, policies and secrets(comma seperated values).''
sourceClusterIDCluster ID (UID of the deafult namespace) of the source cluster''
vault.enabledEnable reading the K10 Disaster Recovery passphrase from a HashiCorp Vault instancefalse
vault.roleSpecifies name of the Vault Kubernetes authentication role binding the K10 service account and namespace to the Vault policy. Required when Vault authentication uses a Kubernetes service account token''
vault.serviceAccountTokenPathOptional when Vault authentication uses a Kubernetes service account token. Defaults to /var/run/secrets/kubernetes.io/serviceaccount/token''
vault.addressSpecify the Vault server address''
vault.secretNameSpecify a Kubernetes secret name that has a token to access the vault. When a Vault authentication token is provided in a Kubernetes secret via vault_token key, this secret name is required''
fips.enabledSpecifies whether K10 Restore should be run in the FIPS mode of operationfalse

Deploy k10restore with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k10restore on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartk10restore is pinned at v8.0.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply