Skip to content

Commit

Permalink
Support Azure snapshots to blob storage
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-primer committed Nov 16, 2018
1 parent 561ddf4 commit 60039aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/elasticsearch/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
{{- end }}
snapshot:
scheduler-enabled: {{ .Values.snapshot.enabled }}
type: {{ .Values.snapshot.type }}
bucket-name: {{ .Values.snapshot.bucketName }}
cron-schedule: "{{ .Values.snapshot.schedule }}"
image: "{{ .Values.snapshot.image }}"
Expand Down
1 change: 1 addition & 0 deletions charts/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use-ssl: True

snapshot:
enabled: false
type: s3
bucketName: elasticsnapshots
schedule: "@every 2m"
image: upmcenterprises/elasticsearch-cron:0.0.4
Expand Down
1 change: 1 addition & 0 deletions example/example-es-cluster-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
java-options: "-Xms1024m -Xmx1024m"
snapshot:
scheduler-enabled: false
type: azure
bucket-name: elasticsnapshots99
cron-schedule: "@every 2m"
image: upmcenterprises/elasticsearch-cron:0.0.4
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/elasticsearchoperator/v1/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ type Snapshot struct {
// Enabled determines if snapshots are enabled
SchedulerEnabled bool `json:"scheduler-enabled"`

// RepoType defines the type of Elasticsearch Repository, s3 or gcs
// RepoType defines the type of Elasticsearch Repository, s3, gcs, azure
RepoType string `json:"type"`

// BucketName defines the AWS S3 or GCS bucket to store snapshots
// BucketName defines the AWS s3, gcs, azure bucket/container to store snapshots
BucketName string `json:"bucket-name"`

// CronSchedule defines how to run the snapshots
Expand Down

0 comments on commit 60039aa

Please sign in to comment.