This article provides step by step instructions on how to enable Veeam Kasten for Kubernetes Disaster Recovery using CLI.
kubectl create secret generic k10-dr-secret --namespace kasten-io --from-literal key=<passphrase>
Copy
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: <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
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.