kubezero/charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/headless-service.yaml

23 lines
686 B
YAML
Raw Normal View History

{{- $sts := list "sts" "StatefulSet" "statefulset" -}}
2022-12-06 20:43:11 +00:00
{{- if or .Values.headlessService (and .Values.persistence.enabled (not .Values.persistence.existingClaim) (has .Values.persistence.type $sts)) }}
apiVersion: v1
kind: Service
metadata:
2022-12-06 20:43:11 +00:00
name: {{ include "grafana.fullname" . }}-headless
namespace: {{ include "grafana.namespace" . }}
labels:
{{- include "grafana.labels" . | nindent 4 }}
2022-12-06 20:43:11 +00:00
{{- with .Values.annotations }}
annotations:
2022-12-06 20:43:11 +00:00
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
clusterIP: None
selector:
{{- include "grafana.selectorLabels" . | nindent 4 }}
type: ClusterIP
2021-12-09 18:03:55 +00:00
ports:
2023-04-14 10:44:57 +00:00
- name: {{ .Values.gossipPortName }}-tcp
port: 9094
{{- end }}