2022-07-11 09:40:49 +00:00
|
|
|
image:
|
2023-11-17 10:18:43 +00:00
|
|
|
repository: bitnami/solr
|
2022-07-11 09:40:49 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-02-21 15:52:26 +00:00
|
|
|
tag: 9.5.0@sha256:e644f1d176c830542856fb454b9dbf116a82c1ed799addf3db14d6c72ec327f8
|
2023-03-01 15:48:43 +00:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
replicas: 1
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
env:
|
|
|
|
SOLR_CORES: "{{ .Values.solrCores }}"
|
|
|
|
SOLR_ENABLE_AUTHENTICATION: "{{ .Values.solrEnableAuthentication }}"
|
|
|
|
SOLR_ADMIN_USERNAME: "{{ .Values.solrUsername }}"
|
|
|
|
SOLR_OPTS: "{{ .Values.solrOpts }}"
|
|
|
|
SOLR_ADMIN_PASSWORD:
|
|
|
|
secretKeyRef:
|
2023-03-05 17:15:26 +00:00
|
|
|
expandObjectName: "{{ if .Values.solrPassword }}true{{ else }}false{{ end }}"
|
|
|
|
name: '{{ if .Values.solrPassword }}credentials{{ else if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ printf "%s-%s" .Release.Name "solrcreds" }}{{ end }}'
|
2023-03-01 15:48:43 +00:00
|
|
|
key: "solr-password"
|
|
|
|
# -- Probe configuration
|
|
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
|
|
# @default -- See below
|
|
|
|
probes:
|
|
|
|
# -- Liveness probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
liveness:
|
|
|
|
# -- Enable the liveness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
|
|
|
- |
|
|
|
|
if [ "$SOLR_ENABLE_AUTHENTICATION" == "yes" ]; then
|
|
|
|
until curl --fail --user "${SOLR_ADMIN_USERNAME}":"${SOLR_ADMIN_PASSWORD}" localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
else
|
|
|
|
until curl --fail localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
fi;
|
|
|
|
# -- Redainess probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
readiness:
|
|
|
|
# -- Enable the readiness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default readinessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
|
|
|
- |
|
|
|
|
if [ "$SOLR_ENABLE_AUTHENTICATION" == "yes" ]; then
|
|
|
|
until curl --fail --user "${SOLR_ADMIN_USERNAME}":"${SOLR_ADMIN_PASSWORD}" localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
else
|
|
|
|
until curl --fail localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
fi;
|
|
|
|
# -- Startup probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
startup:
|
|
|
|
# -- Enable the startup probe
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
|
|
|
- |
|
|
|
|
if [ "$SOLR_ENABLE_AUTHENTICATION" == "yes" ]; then
|
|
|
|
until curl --fail --user "${SOLR_ADMIN_USERNAME}":"${SOLR_ADMIN_PASSWORD}" localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
else
|
|
|
|
until curl --fail localhost:8983/solr/"${SOLR_CORES}"/admin/ping; do sleep 2; done
|
|
|
|
fi;
|
2022-07-11 09:40:49 +00:00
|
|
|
securityContext:
|
2023-03-01 15:48:43 +00:00
|
|
|
container:
|
|
|
|
runAsNonRoot: false
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsUser: 1001
|
|
|
|
runAsGroup: 0
|
2022-07-11 09:40:49 +00:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 8983
|
|
|
|
targetPort: 8983
|
2023-03-19 17:21:22 +00:00
|
|
|
persistence:
|
2022-07-11 09:40:49 +00:00
|
|
|
db:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/bitnami/solr"
|
|
|
|
# Currently only single core is supported, with multiple cores, probes will fail.
|
|
|
|
solrCores: "testcore"
|
|
|
|
solrEnableAuthentication: "yes"
|
|
|
|
solrUsername: "test"
|
|
|
|
# Used to pass a comma separated list of optional options like '-XX:G1HeapRegionSize=8m'
|
|
|
|
solrOpts: ""
|
2023-03-05 17:15:26 +00:00
|
|
|
# -- Secret or password
|
|
|
|
# One of these options is required, unless used as a dependency for another TrueCharts chart.
|
2022-07-11 09:40:49 +00:00
|
|
|
existingSecret: ""
|
2023-03-05 17:15:26 +00:00
|
|
|
solrPassword: ""
|
2022-07-11 09:40:49 +00:00
|
|
|
secret:
|
|
|
|
credentials:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
solr-password: '{{ ( .Values.solrPassword | default "empty" ) }}'
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-03-01 15:48:43 +00:00
|
|
|
open:
|
|
|
|
enabled: true
|
2023-03-01 22:24:09 +00:00
|
|
|
manifestManager:
|
2023-01-15 13:44:57 +00:00
|
|
|
enabled: false
|