elasticsearch-curator
by kfirfer
A Helm chart for Elasticsearch Curator
About this chart
⚠️ Repo Archive Notice
As of Nov 13, 2020, charts in this repo will no longer be updated. For more information, see the Helm Charts Deprecation and Archive Notice, and Update.
Elasticsearch Curator Helm Chart
This directory contains a Kubernetes chart to deploy the Elasticsearch Curator.
Prerequisites Details
-
Elasticsearch
-
The
elasticsearch-curatorcron job requires K8s CronJob support:You need a working Kubernetes cluster at version >= 1.8 (for CronJob). For previous versions of cluster (< 1.8) you need to explicitly enable
batch/v2alpha1API by passing--runtime-config=batch/v2alpha1=trueto the API server (see Turn on or off an API version for your cluster for more).
Chart Details
This chart will do the following:
- Create a CronJob which runs the Curator
Installing the Chart
To install the chart, use the following:
$ helm install stable/elasticsearch-curator
Upgrading an existing Release to a new major version
A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.
To 2.0.0
v2.0.0 uses docker image from elasticsearch-curator author, which differs in its way to install curator.
If you have a hardcoded command value, please update it to follow the new curator executable path: /curator/curator (which is not in PATH).
Configuration
The following table lists the configurable parameters of the docker-registry chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.pullPolicy | Container pull policy | IfNotPresent |
image.repository | Container image to use | untergeek/curator |
image.tag | Container image tag to deploy | 5.7.6 |
hooks | Whether to run job on selected hooks | { "install": false, "upgrade": false } |
cronjob.schedule | Schedule for the CronJob | 0 1 * * * |
cronjob.annotations | Annotations to add to the cronjob | {} |
cronjob.labels | Labels to add to the cronjob | {} |
cronjob.concurrencyPolicy | Allow|Forbid|Replace concurrent jobs | nil |
cronjob.failedJobsHistoryLimit | Specify the number of failed Jobs to keep | nil |
cronjob.successfulJobsHistoryLimit | Specify the number of completed Jobs to keep | nil |
cronjob.jobRestartPolicy | Control the Job restartPolicy | Never |
cronjob.startingDeadlineSeconds | Amount of time to try reschedule job if we can't run on time | nil |
pod.annotations | Annotations to add to the pod | {} |
pod.labels | Labels to add to the pod | {} |
dryrun | Run Curator in dry-run mode | false |
env | Environment variables to add to the cronjob container | {} |
envFromSecrets | Environment variables from secrets to the cronjob container | {} |
envFromSecrets.*.from.secret | - secretKeyRef.name used for environment variable | |
envFromSecrets.*.from.key | - secretKeyRef.key used for environment variable | |
command | Command to execute | ["/curator/curator"] |
configMaps.action_file_yml | Contents of the Curator action_file.yml | See values.yaml |
configMaps.config_yml | Contents of the Curator config.yml (overrides config) | See values.yaml |
resources | Resource requests and limits | {} |
priorityClassName | priorityClassName | nil |
extraVolumeMounts | Mount extra volume(s), | |
extraVolumes | Extra volumes | |
extraInitContainers | Init containers to add to the cronjob container | {} |
securityContext | Configure PodSecurityContext | false |
rbac.enabled | Enable RBAC resources | false |
psp.create | Create pod security policy resources | false |
serviceAccount.create | Create a default serviceaccount for elasticsearch curator | true |
serviceAccount.name | Name for elasticsearch curator serviceaccount | "" |
Specify each parameter using the --set key=value[,key=value] argument to
helm install.
Deploy elasticsearch-curator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has elasticsearch-curator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartelasticsearch-curator is pinned at v2.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply