meilisearch

by Meilisearch

Helm chartv0.42.0App v1.56.0Verified publisher

A Helm chart for the Meilisearch search engine

About this chart

meilisearch

A Helm chart for the Meilisearch search engine

Helm works as a package manager to run pre-configured Kubernetes resources.

Meilisearch provides a customizable Helm chart, ready to deploy a Meilisearch instance on your Kubernetes cluster.

Getting started

First of all, you will need a Kubernetes cluster up and running. If you are not familiar with how Kuberentes works or need some help with this step, please check the Kubernetes documentation.

Install kubectl

kubectl is the most commonly used CLI to handle a Kubernetes cluster. The installation instructions are available here.

Install helm

Helm CLI is a Command Line Interface which will automate chart management and installation on your Kubernetes cluster. To install Helm, follow the Helm installation instructions

Install Meilisearch chart

Clone this repository and install the chart

git clone https://github.com/meilisearch/meilisearch-kubernetes.git
cd meilisearch-kubernetes
# Replace <your-instance-name> with the name you would like to give to your service
helm install <your-service-name> charts/meilisearch

This command deploys Meilisearch on your Kubernetes cluster using the default configuration. The Parameters section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the Meilisearch deployment:

# Replace <your-instance-name> with the name of your deployed service
helm uninstall <your-service-name>

Environment

The environment block allows to specify all the environment variables declared on Meilisearch Configuration

For production deployment, the environment.MEILI_MASTER_KEY is required. If MEILI_ENV is set to "production" without setting environment.MEILI_MASTER_KEY, then this chart will automatically create a secure environment.MEILI_MASTER_KEY as a secret.

You can also use auth.existingMasterKeySecret to use an existing secret that has the key MEILI_MASTER_KEY

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment
auth.existingMasterKeySecretstring""Use an existing Kubernetes secret for the MEILI_MASTER_KEY
commandlist[]Pod command
container.containerPortint7700
containerslist[]Additional containers for pod
customLabelsobject{}Additional labels to add to all resources
envFromlist[]Additional environment variables from ConfigMap or secrets
environment.MEILI_ENVstring"development"Sets the environment. Either production or development
environment.MEILI_NO_ANALYTICSbooltrueDeactivates analytics
fullnameOverridestring""String to fully override meilisearch.fullname
image.pullPolicystring"IfNotPresent"Meilisearch image pull policy
image.pullSecretstringnilSecret to authenticate against the docker registry
image.repositorystring"getmeili/meilisearch"Meilisearch image name
image.tagstring"v1.2.0"Meilisearch image tag
image.digeststring""Meilisearch image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
ingress.annotationsobject{}Ingress annotations
ingress.classNamestring"nginx"Ingress ingressClassName
ingress.enabledboolfalseEnable ingress controller resource
ingress.hostslist["meilisearch-example.local"]List of hostnames
ingress.pathstring"/"Path within the host
ingress.tlslist[]TLS specification
livenessProbe.InitialDelaySecondsint0
livenessProbe.periodSecondsint10
livenessProbe.timeoutSecondsint10
nameOverridestring""String to partially override meilisearch.fullname
nodeSelectorobject{}Node labels for pod assignment
persistence.accessModestring"ReadWriteOnce"PVC Access Mode
persistence.annotationsobject{}Additional annotations for PVC
persistence.enabledboolfalseEnable persistence using PVC
persistence.existingClaimstring""Existing PVC
persistence.sizestring"10Gi"PVC Storage Request
persistence.storageClassstring"-"PVC Storage Class
persistence.volume.mountPathstring"/meili_data"
persistence.volume.namestring"data"
podAnnotationsobject{}
podLabelsobject{}Additional labels to add to the pod(s) only
podSecurityContext.fsGroupint1000
podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"
podSecurityContext.runAsGroupint1000
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1000
readinessProbe.InitialDelaySecondsint0
readinessProbe.periodSecondsint10
readinessProbe.timeoutSecondsint10
replicaCountint1Number of Meilisearch pods to run
resourcesobject{}Resources allocation (Requests and Limits)
securityContext.allowPrivilegeEscalationboolfalse
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
serviceobject{"annotations":{},"port":7700,"type":"ClusterIP"}Service HTTP port
service.annotationsobject{}Additional annotations for service
service.typestring"ClusterIP"Kubernetes Service type
serviceAccount.annotationsobject{}Additional annotations for created service account
serviceAccount.createbooltrueShould this chart create a service account
serviceAccount.namestring""Custom service account name, if not created by this chart
serviceMonitorobject{"additionalLabels":{},"enabled":false,"interval":"1m","metricRelabelings":[],"relabelings":[],"scrapeTimeout":"10s","targetLabels":[],"telemetryPath":"/metrics"}Monitoring with Prometheus Operator
serviceMonitor.additionalLabelsobject{}Set of labels to transfer from the Kubernetes Service onto the target
serviceMonitor.enabledboolfalseEnable ServiceMonitor to configure scraping
serviceMonitor.intervalstring"1m"Set scraping frequency
serviceMonitor.metricRelabelingslist[]MetricRelabelConfigs to apply to samples before ingestion
serviceMonitor.relabelingslist[]Set relabel_configs as per https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
serviceMonitor.scrapeTimeoutstring"10s"Set scraping timeout
serviceMonitor.targetLabelslist[]Set of labels to transfer from the Kubernetes Service onto the target
serviceMonitor.telemetryPathstring"/metrics"Set path to metrics
startupProbe.InitialDelaySecondsint1
startupProbe.failureThresholdint60
startupProbe.periodSecondsint1
startupProbe.timeoutSecondsint1
tolerationslist[]Tolerations for pod assignment
volumeMountslist[]Additional volumes to mount on pod
volumeslist[]Additional volumes for pod

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy meilisearch with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has meilisearch 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 chartmeilisearch is pinned at v0.42.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