Files
charts/bitnami/clickhouse/templates/service-headless.yaml
Carlos Rodríguez Hernández a5e4bd0e35 Replace VMware by Broadcom copyright text (#25306)
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2024-04-25 12:44:38 +02:00

70 lines
2.5 KiB
YAML

{{- /*
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "clickhouse.headlessServiceName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: clickhouse
{{- if or .Values.service.headless.annotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.service.headless.annotations .Values.commonAnnotations ) "context" . ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
{{- end }}
spec:
type: ClusterIP
clusterIP: None
publishNotReadyAddresses: true
ports:
- name: http
targetPort: http
port: {{ .Values.containerPorts.http }}
protocol: TCP
- name: tcp
targetPort: tcp
port: {{ .Values.containerPorts.tcp }}
protocol: TCP
{{- if .Values.tls.enabled }}
- name: tcp-secure
targetPort: tcp-secure
port: {{ .Values.containerPorts.tcpSecure }}
protocol: TCP
{{- end }}
{{- if .Values.keeper.enabled }}
- name: tcp-keeper
targetPort: tcp-keeper
port: {{ .Values.containerPorts.keeper }}
protocol: TCP
- name: tcp-keeperinter
targetPort: tcp-keeperinter
port: {{ .Values.containerPorts.keeperInter }}
protocol: TCP
{{- if .Values.tls.enabled }}
- name: tcp-keepertls
targetPort: tcp-keepertls
port: {{ .Values.containerPorts.keeperSecure }}
protocol: TCP
{{- end }}
{{- end }}
- name: tcp-mysql
targetPort: tcp-mysql
port: {{ .Values.containerPorts.mysql }}
protocol: TCP
- name: tcp-postgresql
targetPort: tcp-postgresql
port: {{ .Values.containerPorts.postgresql }}
protocol: TCP
- name: http-intersrv
targetPort: http-intersrv
port: {{ .Values.containerPorts.interserver }}
protocol: TCP
{{- 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" . ) }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: clickhouse