mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 14:57:24 +08:00
* [bitnami/neo4j] Add chart Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add support for readOnlyRootFilesystem, use development image Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Remove serviceMonitor Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add VIB tests and image improvements Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add neo4j host Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update chart Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Fix values metadata Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Fix test inputs Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add TLS support Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Change readiness Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update README metadata Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update test service ports Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Add goss https test Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Fix goss vars file Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update dev image Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Increase timeout Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Change bolt port Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Use bitnami/neo4j:5.20.0-debian-12-r2 Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Modify TLS secrets Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Add ingress-tls-secret.yaml Signed-off-by: Miguel Ruiz <miruiz@vmware.com> --------- Signed-off-by: Miguel Ruiz <miruiz@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
79 lines
3.8 KiB
YAML
79 lines
3.8 KiB
YAML
{{- /*
|
|
Copyright Broadcom, Inc. All Rights Reserved.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: neo4j
|
|
{{- if or .Values.service.annotations .Values.commonAnnotations }}
|
|
{{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.service.annotations .Values.commonAnnotations) "context" .) }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
|
|
clusterIP: {{ .Values.service.clusterIP }}
|
|
{{- 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 }}
|
|
{{- 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") (not (empty .Values.service.loadBalancerSourceRanges)) }}
|
|
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }}
|
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
|
{{- end }}
|
|
ports:
|
|
- name: bolt
|
|
port: {{ .Values.service.ports.bolt }}
|
|
{{- if not (eq .Values.service.ports.bolt .Values.containerPorts.bolt) }}
|
|
targetPort: {{ .Values.containerPorts.bolt }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.bolt)) }}
|
|
nodePort: {{ .Values.service.nodePorts.bolt }}
|
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
|
nodePort: null
|
|
{{- end }}
|
|
- name: http
|
|
port: {{ .Values.service.ports.http }}
|
|
{{- if not (eq .Values.service.ports.http .Values.containerPorts.http) }}
|
|
targetPort: {{ .Values.containerPorts.http }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.http)) }}
|
|
nodePort: {{ .Values.service.nodePorts.http }}
|
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
|
nodePort: null
|
|
{{- end }}
|
|
{{- if .Values.tls.https.enabled }}
|
|
- name: https
|
|
port: {{ .Values.service.ports.https }}
|
|
{{- if not (eq .Values.service.ports.https .Values.containerPorts.https) }}
|
|
targetPort: {{ .Values.containerPorts.https }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.https)) }}
|
|
nodePort: {{ .Values.service.nodePorts.https }}
|
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
|
nodePort: null
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.service.extraPorts }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- $podLabels := include "common.tplvalues.merge" (dict "values" (list .Values.podLabels .Values.commonLabels) "context" .) | fromYaml }}
|
|
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: neo4j
|