Hello
is it possible to execute a kasten action not from GUI?
- creating a kanister ActionSet ? (but I do not see where to set profile)
- using a kanister CLI like kanctl ? from a job/pod using which image ?
Thanks in advance?
Pascal
Hello
is it possible to execute a kasten action not from GUI?
- creating a kanister ActionSet ? (but I do not see where to set profile)
- using a kanister CLI like kanctl ? from a job/pod using which image ?
Thanks in advance?
Pascal
Best answer by michaelcade
You can create a location profile with something along the lines of
apiVersion: config.kio.kasten.io/v1alpha1
kind: Profile
metadata:
name: s3-export
namespace: kasten-io
spec:
type: Location
locationSpec:
credential:
secretType: AwsAccessKey
secret:
apiVersion: v1
kind: Secret
name: k10-s3-secret
namespace: kasten-io
type: ObjectStore
objectStore:
objectStoreType: S3
# NOTE: Name and region must be manually update!
name: kasten-export-00000000000000000000000000
region: eu-central-1
and then a backup policy could look like
apiVersion: config.kio.kasten.io/v1alpha1
kind: Policy
metadata:
name: demo-app-backup-policy
namespace: kasten-io
spec:
comment: Backup policy for the demo-app
frequency: "@hourly"
retention:
hourly: 24
daily: 7
actions:
- action: backup
- action: export
exportParameters:
frequency: "@hourly"
migrationToken:
name: ""
namespace: ""
profile:
name: s3-export
namespace: kasten-io
receiveString: ""
exportData:
enabled: true
retention:
hourly: 0
daily: 0
weekly: 0
monthly: 0
yearly: 0
selector:
matchLabels:
k10.kasten.io/appNamespace: demo-app
Intracacies can be found in the docs though and specifics around coverage of all CRDs and Aggregated APIs that are available this way.
Hope that helps
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.