elasticsearch-curator

by joaquinito2051

Helm chartv1.5.0App 5.5.4

A Helm chart for Elasticsearch Curator

About this chart

Elasticsearch Curator Helm Chart

This directory contains a Kubernetes chart to deploy the Elasticsearch Curator.

Prerequisites Details

  • Elasticsearch

  • The elasticsearch-curator cron 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/v2alpha1 API by passing --runtime-config=batch/v2alpha1=true to 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 <helm-repo>/elasticsearch-curator

$ helm install stable/elasticsearch-curator

Configuration

The following table lists the configurable parameters of the docker-registry chart and their default values.

ParameterDescriptionDefault
image.pullPolicyContainer pull policyIfNotPresent
image.repositoryContainer image to usequay.io/pires/docker-elasticsearch-curator
image.tagContainer image tag to deploy5.5.4
hooksWhether to run job on selected hooks{ "install": false, "upgrade": false }
cronjob.scheduleSchedule for the CronJob0 1 * * *
cronjob.annotationsAnnotations to add to the cronjob{}
cronjob.concurrencyPolicy`AllowForbid
cronjob.failedJobsHistoryLimitSpecify the number of failed Jobs to keepnil
cronjob.successfulJobsHistoryLimitSpecify the number of completed Jobs to keepnil
pod.annotationsAnnotations to add to the pod{}
dryrunRun Curator in dry-run modefalse
envEnvironment variables to add to the cronjob container{}
envFromSecretsEnvironment 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
commandCommand to execute["curator"]
configMaps.action_file_ymlContents of the Curator action_file.ymlSee values.yaml
configMaps.config_ymlContents of the Curator config.yml (overrides config)See values.yaml
resourcesResource requests and limits{}
priorityClassNamepriorityClassNamenil
extraVolumeMountsMount extra volume(s),
extraVolumesExtra volumes
extraInitContainersInit containers to add to the cronjob container{}
securityContextConfigure PodSecurityContextfalse
rbac.enabledEnable RBAC resourcesfalse
psp.createCreate pod security policy resourcesfalse
serviceAccount.createCreate a default serviceaccount for elasticsearch curatortrue
serviceAccount.nameName 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartelasticsearch-curator is pinned at v1.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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