solr
by [riftbit]
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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override solr.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override solr.fullname template | "" |
clusterDomain | Kubernetes cluster domain | cluster.local |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
extraDeploy | Extra objects to deploy (value evaluated as a template) | [] |
Solr parameters
| Name | Description | Value |
|---|---|---|
image.registry | Solr image registry | docker.io |
image.repository | Solr image repository | bitnami/solr |
image.tag | Solr image tag (immutable tags are recommended) | 8.9.0-debian-10-r88 |
image.pullPolicy | image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
coreName | Solr core name to be created | my-core |
cloudEnabled | Enable Solr cloud mode | true |
cloudBootstrap | Enable cloud bootstrap. It will be performed from the node 0. | true |
collection | Solr collection name | my-collection |
collectionShards | Number of collection shards | 1 |
collectionReplicas | Number of collection replicas | 2 |
containerPort | Port number where Solr is running inside the container | 8983 |
serverDirectory | Name of the created directory for the server | server |
javaMem | Java memory options to pass to the Solr container | "" |
heap | Java Heap options to pass to the solr container | "" |
authentication.enabled | Enable Solr authentication | true |
authentication.adminUsername | Solr admin username | admin |
authentication.adminPassword | Solr admin password. Autogenerated if not provided. | "" |
existingSecret | Existing secret with Solr password | "" |
command | Override Solr entrypoint string | [] |
args | Arguments for the provided command if needed | [] |
extraEnvVars | Additional environment variables to set | [] |
extraEnvVarsCM | ConfigMap with extra environment variables | "" |
extraEnvVarsSecret | Secret with extra environment variables | "" |
Solr statefulset parameters
| Name | Description | Value |
|---|---|---|
hostAliases | Deployment pod host aliases | [] |
replicaCount | Number of solr replicas | 3 |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 30 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 5 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 6 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 5 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 5 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 6 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
resources.limits | The resources limits for the container | {} |
resources.requests | The requested resources for the container | {} |
containerSecurityContext.enabled | Enable Solr containers' Security Context | true |
containerSecurityContext.runAsUser | User ID for the containers | 1001 |
containerSecurityContext.runAsNonRoot | Enable Solr containers' Security Context runAsNonRoot | true |
podSecurityContext.enabled | Enable Solr pods' Security Context | true |
podSecurityContext.fsGroup | Group ID for the pods. | 1001 |
podAffinityPreset | Solr pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Solr pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Solr node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Solr node label key to match Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Solr node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity settings for Solr pod assignment. Evaluated as a template | {} |
nodeSelector | Node labels for Solr pods assignment. Evaluated as a template | {} |
tolerations | Tolerations for Solr pods assignment. Evaluated as a template | [] |
podLabels | Additional 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsolr is pinned at v2.0.6 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