solr

by [riftbit]

Helm chartv2.0.6App 8.9.0Verified publisher

Apache Solr is an open source enterprise search platform

About this chart

Solr

Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more..

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/solr

Introduction

This chart bootstraps a Solr deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/solr

These commands deploy Solr on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release statefulset:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all history too.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
nameOverrideString to partially override solr.fullname template (will maintain the release name)""
fullnameOverrideString to fully override solr.fullname template""
clusterDomainKubernetes cluster domaincluster.local
commonLabelsAdd labels to all the deployed resources{}
commonAnnotationsAdd annotations to all the deployed resources{}
extraDeployExtra objects to deploy (value evaluated as a template)[]

Solr parameters

NameDescriptionValue
image.registrySolr image registrydocker.io
image.repositorySolr image repositorybitnami/solr
image.tagSolr image tag (immutable tags are recommended)8.9.0-debian-10-r88
image.pullPolicyimage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
coreNameSolr core name to be createdmy-core
cloudEnabledEnable Solr cloud modetrue
cloudBootstrapEnable cloud bootstrap. It will be performed from the node 0.true
collectionSolr collection namemy-collection
collectionShardsNumber of collection shards1
collectionReplicasNumber of collection replicas2
containerPortPort number where Solr is running inside the container8983
serverDirectoryName of the created directory for the serverserver
javaMemJava memory options to pass to the Solr container""
heapJava Heap options to pass to the solr container""
authentication.enabledEnable Solr authenticationtrue
authentication.adminUsernameSolr admin usernameadmin
authentication.adminPasswordSolr admin password. Autogenerated if not provided.""
existingSecretExisting secret with Solr password""
commandOverride Solr entrypoint string[]
argsArguments for the provided command if needed[]
extraEnvVarsAdditional environment variables to set[]
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables""

Solr statefulset parameters

NameDescriptionValue
hostAliasesDeployment pod host aliases[]
replicaCountNumber of solr replicas3
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe30
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
resources.limitsThe resources limits for the container{}
resources.requestsThe requested resources for the container{}
containerSecurityContext.enabledEnable Solr containers' Security Contexttrue
containerSecurityContext.runAsUserUser ID for the containers1001
containerSecurityContext.runAsNonRootEnable Solr containers' Security Context runAsNonRoottrue
podSecurityContext.enabledEnable Solr pods' Security Contexttrue
podSecurityContext.fsGroupGroup ID for the pods.1001
podAffinityPresetSolr pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetSolr pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeSolr node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keySolr node label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesSolr node label values to match. Ignored if affinity is set.[]
affinityAffinity settings for Solr pod assignment. Evaluated as a template{}
nodeSelectorNode labels for Solr pods assignment. Evaluated as a template{}
tolerationsTolerations for Solr pods assignment. Evaluated as a template[]
podLabelsAdditional labels for pods pod{}
podAnnotations

Deploy solr with OpenTenant

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