Lucene search

K
veeamVeeam softwareVEEAM:KB4601
HistoryJun 11, 2024 - 12:00 a.m.

How to Enable Veeam Kasten for Kubernetes Disaster Recovery using CLI

2024-06-1100:00:00
Veeam software
www.veeam.com
2
veeam kasten
kubernetes
disaster recovery
cli
enable

AI Score

7

Confidence

High

Purpose

This article provides step by step instructions on how to enable Veeam Kasten for Kubernetes Disaster Recovery using CLI.

Solution

  1. Replace <passphrase> in the following command and run it to create a DR secret with a passphrase:
    **Note:**Save this passphrase. This is required for recovering the cluster in case of Disaster.
kubectl create secret generic k10-dr-secret  --namespace kasten-io  --from-literal key=&lt;passphrase&gt;

Copy

  1. Create a Disaster Recovery Policy.
    * Provide Location Profile where you want to save your DR Configuration @profile: <NAME OF LOCATION PROFILE>
    * Frequency and Retention can be changed according to the need for @hourly @daily etc.
kubectl create -f k10-disaster-recovery-policy.yaml

Copy

Example k10-disaster-recovery-policy.yaml

apiVersion: config.kio.kasten.io/v1alpha1
kind: Policy
metadata:
  name: k10-disaster-recovery-policy
  namespace: kasten-io
spec:
  actions:
  - action: backup
    backupParameters:
    filters: {}
    profile:
      name: &lt;NAME OF LOCATION PROFILE&gt;
      namespace: kasten-io 
  createdBy: kasten-io:k10-k10
  frequency: '@hourly'
  lastModifyHash: 1498887201
  retention:
    daily: 1
    hourly: 4
    monthly: 1
    weekly: 1
    yearly: 1
  selector:
    matchExpressions:
    - key: k10.kasten.io/appNamespace
    operator: In
    values:
    - kasten-io
  1. Verify the status of the created policy is "Success".
kubectl get policies

Copy

Example output

NAME                         STATUS
k10-disaster-recovery-policy Success

Note: The policy status will list 'Failed' if there are any typos in location profile or if the profile is unavailable.

To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

AI Score

7

Confidence

High