Skip to content

Commit

Permalink
feat: support snapshot backup for elasticsearch (#115)
Browse files Browse the repository at this point in the history
(cherry picked from commit 41ef603)
  • Loading branch information
iziang committed Dec 20, 2023
1 parent 0d2c6e7 commit 340988d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions addons/elasticsearch/templates/backuppolicytemplate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps.kubeblocks.io/v1alpha1
kind: BackupPolicyTemplate
metadata:
name: elasticsearch-backup-policy-template
labels:
clusterdefinition.kubeblocks.io/name: elasticsearch
{{- include "elasticsearch.labels" . | nindent 4 }}
spec:
clusterDefinitionRef: elasticsearch
backupPolicies:
- componentDefRef: elasticsearch
backupMethods:
- name: volume-snapshot
snapshotVolumes: true
targetVolumes:
volumes:
- data
schedules:
- backupMethod: volume-snapshot
enabled: false
cronExpression: "0 18 * * 0"
retentionPeriod: 7d

0 comments on commit 340988d

Please sign in to comment.