Snapshot using Azure Repository Plugin in Elasticsearch(ECK) !
Elasticsearch comes with lot of cool features and index snapshot is one of it. A snapshot is a backup taken from a running Elasticsearch cluster. You can take snapshots of individual indices or of the entire cluster. Snapshots allows you to ensure proper backups are in place in case of any disaster.
These Snapshots can be placed in either local or remote repositories. Remote repositories can reside on cloud providers storage service. Elasticsearch can use them via plugins. In this post we talk about using Azure Repository plugin for keeping snapshots in Azure Cloud.
I have deployed a Elasticsearch cluster using ECK.
ECK is K8s operator based deployment mechanism provided by Elasticsearch.
Before we proceed further, following items need to be in place.
- The Image which I am using for Elasticsearch deployment is custom image build on top of base Elasticsearch and Azure plugin deployed. (https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-custom-images.html)
- Make sure you have a valid Azure subscription and Storage Account. Use this storage account to create a Storage container. Elasticsearch use this container to place snapshots.
- You should have Azure Storage Account Keys handy.