Skip to content

Commit

Permalink
feat(solr): Minor updates to Solr Operator template
Browse files Browse the repository at this point in the history
  • Loading branch information
sylus committed May 10, 2024
1 parent f5d33bc commit bdad68e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
6 changes: 3 additions & 3 deletions charts/solr/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: solr
description: A Helm chart for a Solr instance using the official Solr Operator
description: A Helm chart for a Solr instance using the official Solr Operator.

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.7
version: 0.1.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "8.11.1"
appVersion: "8.11.3"
20 changes: 7 additions & 13 deletions charts/solr/templates/solrcloud/solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
{{- include "solr.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.solr.replicas }}
dataStorage:
persistent:
reclaimPolicy: Delete
Expand All @@ -13,24 +14,17 @@ spec:
resources:
requests:
storage: "{{ .Values.solr.storage.size }}"
replicas: {{ .Values.replicas }}
solrImage:
tag: "{{ default .Chart.AppVersion .Values.solr.tag }}"
solrJavaMem: "{{ .Values.solr.solrJavaMem }}"
solrSecurity:
authenticationType: Basic
probesRequireAuth: true
basicAuthSecret: {{ .Values.solr.basicAuthSecret }}
{{- if .Values.solr.customSolrKubeOptions }}
customSolrKubeOptions:
podOptions:
livenessProbe:
timeoutSeconds: 5
readinessProbe:
timeoutSeconds: 5
{{- if .Values.solr.resources }}
resources:
{{ toYaml .Values.solr.resources | indent 8 }}
{{- end }}
{{- toYaml .Values.solr.customSolrKubeOptions | nindent 4 }}
{{- end }}
zookeeperRef:
provided:
chroot: "/this/will/be/auto/created"
Expand All @@ -41,10 +35,10 @@ spec:
requests:
storage: "{{ .Values.zookeeper.storage.size }}"
replicas: {{ .Values.replicas }}
{{- if .Values.zookeeper.resources }}
zookeeperPodPolicy:
{{- if .Values.zookeeper.resources }}
resources:
{{ toYaml .Values.zookeeper.resources | indent 10 }}
{{- end }}
{{- toYaml .Values.zookeeper.resources | nindent 10 }}
{{- end }}
solrOpts: "-Dsolr.autoSoftCommit.maxTime=10000"
solrGCTune: "-XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8"
31 changes: 19 additions & 12 deletions charts/solr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,32 @@ ingress:
solr:
# https://github.com/apache/solr-operator/blob/main/docs/solr-cloud/solr-cloud-crd.md#k8s-oper-user
basicAuthSecret:
replicas: 1
solrJavaMem: "-Xms1g -Xmx5g"
resources: {}
# requests:
# memory: "256Mi"
# cpu: "100m"
# limits:
# memory: "1Gi"
# cpu: "500m"
# customSolrKubeOptions:
# podOptions:
# livenessProbe:
# periodSeconds: 15
# timeoutSeconds: 5
# readinessProbe:
# timeoutSeconds: 5
# resources:
# limits:
# memory: 5Gi
# requests:
# cpu: 250m
# memory: 256Mi
storage:
size: 5Gi

zookeeper:
resources: {}
# requests:
# memory: "256Mi"
# cpu: "100m"
# limits:
# memory: "1Gi"
# cpu: "500m"
# memory: 2Gi
# requests:
# cpu: 250m
# memory: 256Mi

storage:
size: 5Gi

Expand Down

0 comments on commit bdad68e

Please sign in to comment.