From c83803d095b139c253f1297fcb054ee667a6171b Mon Sep 17 00:00:00 2001 From: pritamdas99 Date: Tue, 11 Feb 2025 12:21:57 +0600 Subject: [PATCH] Update backupconfig yaml Signed-off-by: pritamdas99 --- .../kubestash/addons/elasticsearch.json | 66 ++++++++++++++----- 1 file changed, 51 insertions(+), 15 deletions(-) diff --git a/data/products/kubestash/addons/elasticsearch.json b/data/products/kubestash/addons/elasticsearch.json index acb2f218..0ca0993a 100644 --- a/data/products/kubestash/addons/elasticsearch.json +++ b/data/products/kubestash/addons/elasticsearch.json @@ -58,7 +58,7 @@ "description": "You can store your backed up data into various storage services. Kubetash supports AWS S3, Minio, Rook, Google Cloud Storage, Azure Blob Storage, OpenStack Swift, DigitalOcean Spaces, Blackbaze B2 and REST server as backend. You can also use Kubernetes persistent volumes as backend." } ], - "example": { + "example":{ "apiVersion": "core.kubestash.com/v1alpha1", "kind": "BackupConfiguration", "metadata": { @@ -66,22 +66,58 @@ "namespace": "demo" }, "spec": { - "schedule": "*/5 * * * *", - "repository": { - "name": "demo-repo" - }, "target": { - "ref": { - "apiVersion": "appcatalog.appscode.com/v1alpha1", - "kind": "AppBinding", - "name": "sample-opensearch" - } + "apiGroup": "appcatalog.appscode.com", + "kind": "AppBinding", + "name": "elasticsearch-appbinding", + "namespace": "demo" }, - "retentionPolicy": { - "name": "keep-last-5", - "keepLast": 5, - "prune": true - } + "backends": [ + { + "name": "gcs-backend", + "storageRef": { + "namespace": "demo", + "name": "gcs-storage" + }, + "retentionPolicy": { + "name": "demo-retention", + "namespace": "demo" + } + } + ], + "sessions": [ + { + "name": "frequent-backup", + "scheduler": { + "schedule": "*/5 * * * *", + "jobTemplate": { + "backoffLimit": 1 + } + }, + "repositories": [ + { + "name": "gcs-elasticsearch-repo", + "backend": "gcs-backend", + "directory": "/elasticsearch", + "encryptionSecret": { + "name": "encrypt-secret", + "namespace": "demo" + } + } + ], + "addon": { + "name": "elasticsearch-addon", + "tasks": [ + { + "name": "logical-backup", + "params": { + "databases": "playground" + } + } + ] + } + } + ] } } } \ No newline at end of file