[bitnami/solr] Add missing service parameter (#10431)

* [bitnami/solr] Add missing service parameters

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Miguel Ruiz
2022-05-30 17:58:58 +02:00
committed by GitHub
parent 34b62e2ce4
commit c08a2b76f0
5 changed files with 38 additions and 25 deletions

View File

@@ -27,4 +27,4 @@ name: solr
sources:
- https://github.com/bitnami/bitnami-docker-solr
- https://lucene.apache.org/solr/
version: 5.0.3
version: 5.1.0

View File

@@ -175,6 +175,7 @@ The command removes all the Kubernetes components associated with the chart and
| `service.ports.http` | Solr HTTP service port | `8983` |
| `service.nodePorts.http` | Node port for the HTTP service | `""` |
| `service.sessionAffinity` | Control where client requests go, to the same pod or round-robin | `None` |
| `service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
| `service.clusterIP` | Solr service Cluster IP | `""` |
| `service.loadBalancerIP` | Solr service Load Balancer IP | `""` |
| `service.loadBalancerSourceRanges` | Solr service Load Balancer sources | `[]` |
@@ -199,15 +200,16 @@ The command removes all the Kubernetes components associated with the chart and
### Persistence parameters
| Name | Description | Value |
| --------------------------- | ---------------------------------------------- | ------------------- |
| `persistence.enabled` | Use a PVC to persist data. | `true` |
| `persistence.existingClaim` | A manually managed Persistent Volume and Claim | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Size of data volume | `8Gi` |
| `persistence.annotations` | Persistence annotations for Solr | `{}` |
| `persistence.mountPath` | Persistence mount path for Solr | `/bitnami/solr` |
| Name | Description | Value |
| --------------------------- | ---------------------------------------------------------------------- | ------------------- |
| `persistence.enabled` | Use a PVC to persist data. | `true` |
| `persistence.existingClaim` | A manually managed Persistent Volume and Claim | `""` |
| `persistence.storageClass` | Storage class of backing PVC | `""` |
| `persistence.accessModes` | Persistent Volume Access Modes | `["ReadWriteOnce"]` |
| `persistence.size` | Size of data volume | `8Gi` |
| `persistence.annotations` | Persistence annotations for Solr | `{}` |
| `persistence.mountPath` | Persistence mount path for Solr | `/bitnami/solr` |
| `persistence.selector` | Selector to match an existing Persistent Volume for WordPress data PVC | `{}` |
### Volume Permissions parameters
@@ -301,7 +303,6 @@ The command removes all the Kubernetes components associated with the chart and
| `metrics.nodeSelector` | Node labels for Solr Prometheus exporter pods assignment. Evaluated as a template | `{}` |
| `metrics.tolerations` | Tolerations for Solr Prometheus exporter pods assignment. Evaluated as a template | `[]` |
| `metrics.topologySpreadConstraints` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | `{}` |
| `metrics.podManagementPolicy` | Management Policy for Solr Prometheus exporter deployment | `Parallel` |
| `metrics.priorityClassName` | Solr Prometheus exporter pods' priority. | `""` |
| `metrics.schedulerName` | Kubernetes pod scheduler registry | `""` |
| `metrics.hostAliases` | Solr Prometheus exporter pod host aliases | `[]` |

View File

@@ -9,7 +9,7 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.metrics.service.Labels }}
{{- if .Values.metrics.service.labels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.metrics.service.labels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.metrics.service.annotations .Values.commonAnnotations }}
@@ -24,7 +24,7 @@ metadata:
spec:
type: ClusterIP
sessionAffinity: {{ .Values.metrics.service.sessionAffinity }}
{{- if and (eq .Values.metrics.service.type "ClusterIP") .Values.metrics.service.clusterIP }}
{{- if .Values.metrics.service.clusterIP }}
clusterIP: {{ .Values.metrics.service.clusterIP }}
{{- end }}
ports:

View File

@@ -19,19 +19,24 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
{{- end }}
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }}
{{ end }}
{{- end }}
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.sessionAffinity }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
{{- end }}
{{- if .Values.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
ports:
- name: tcp-client
port: {{ .Values.service.ports.http }}

View File

@@ -366,6 +366,12 @@ service:
## ref: https://kubernetes.io/docs/user-guide/services/
##
sessionAffinity: None
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
## sessionAffinityConfig:
## clientIP:
## timeoutSeconds: 300
##
sessionAffinityConfig: {}
## @param service.clusterIP Solr service Cluster IP
## e.g.:
## clusterIP: None
@@ -483,7 +489,7 @@ ingress:
## - host: solr.local
## http:
## path: /
## backend:
## backend:
## service:
## name: solr-svc
## port:
@@ -525,7 +531,14 @@ persistence:
## @param persistence.mountPath Persistence mount path for Solr
##
mountPath: /bitnami/solr
## @param persistence.selector Selector to match an existing Persistent Volume for WordPress data PVC
## If set, the PVC can't have a PV dynamically provisioned for it
## E.g.
## selector:
## matchLabels:
## app: my-app
##
selector: {}
## @section Volume Permissions parameters
##
@@ -805,12 +818,6 @@ metrics:
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
##
topologySpreadConstraints: {}
## @param metrics.podManagementPolicy Management Policy for Solr Prometheus exporter deployment
## StatefulSet controller supports relaxing its ordering guarantees while preserving its uniqueness and identity guarantees
## There are two valid pod management policies: OrderedReady and Parallel
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
##
podManagementPolicy: Parallel
## @param metrics.priorityClassName Solr Prometheus exporter pods' priority.
## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
##