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: | 2025-06-27 |
Purpose
Solution
- 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.
- 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.
- The KDR (Kasten Disaster Recovery) backup can customize catalog snapshot behavior using the @kdrSnapshotConfiguration. It supports workflows such as enabling/disabling local, export, and no catalog snapshots.
For detailed configuration examples, refer to the Enabling Veeam Kasten Disaster Recovery via CLI
Run the following command to create the policy:
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
- Verify the status of the created policy is “Success”.
Example output
NAME STATUS k10-disaster-recovery-policy Success
Note: The policy status will list ‘Failed’ if there are typos in the location profile, the profile is unavailable, or the incorrect kdrSnapshotConfiguration is set.
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
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.