-
Notifications
You must be signed in to change notification settings - Fork 687
How to configure snapshots with curator #196
Comments
This repo docs do mention how to schedule Curator jobs. You just need to learn Curator enough, in order to create a configuration that will deliver what you need.
|
I already have existing snapshot & delete old indices configs, which I need to adapt. |
I should probably elaborate a bit.
And the backup_actions.yml is using $DAYS & $SNAPSHOT_NAME set by the shell script:
How would you go about using these shell env vars in docker/k8s? |
Maybe I'm missing something but can't you simply set env vars in the podSpec such as https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/? |
I don't think that this is a viable approach for setting a k8s container env var? |
Additionaly, any tips on how to configure the elasticsearch keystore (which appears to be a requirement for configuring both GCS & AWS S3 access to store snapshots)? https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-gcs-usage.html https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-client.html |
@pires I will try to build my own image based on yours, the expanded image will create the "elasticsearch.keystore" keyfile, as described here: https://www.elastic.co/guide/en/elasticsearch/reference/6.3/secure-settings.html That way all my containers will already have the keystore configuration and gcs key used to authenticate to the gcs bucket used for snapshots. I tried creating the file, from a shell in the client node.
Dockerfile:
What does your image use for CMD? |
I found your Dockerfile here, and modified mine accordingly: Dockerfile:
Build is failing with:
|
Ok, I managed to build the image.
Here's my final Dockerfile of the new image:
Any clues on how to fix this, @pires ? Thanks in advance! |
Looks like
Additionally: Have you ensured |
Hi,
trying to come up with the best solution to snapshot an indices subset.
Using ElasticSearch (6.2.2) from this repo on Google Kubernetes Engine.
Failed to find any useful examples on how to do this with ES on GKE.
Found PV snapshotting (k8s >v1.8), but I don't need all indices, so no need to snapshot entire volume.
Would use curator snapshot mechanism to store to Google Cloud bucket.
Any tips on how to go about this?
Thanks in advance!
The text was updated successfully, but these errors were encountered: