#1 Global Leader in Data Resilience

How to Enable Veeam Kasten for Kubernetes Disaster Recovery using CLI

KB ID: 4601
Product: Veeam Kasten for Kubernetes
Published: 2024-06-11
Last Modified: 2024-06-11
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

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=<passphrase>
  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

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: <NAME OF LOCATION PROFILE>
      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

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.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.