mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
25 lines
800 B
YAML
25 lines
800 B
YAML
|
{{- if and .Values.vmselect.enabled .Values.vmselect.statefulSet.enabled -}}
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
{{- if .Values.vmselect.statefulSet.service.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.vmselect.statefulSet.service.annotations | indent 4}}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
{{- include "victoria-metrics.vmselect.labels" . | nindent 4 }}
|
||
|
{{- if .Values.vmselect.statefulSet.service.labels }}
|
||
|
{{ toYaml .Values.vmselect.statefulSet.service.labels | indent 4}}
|
||
|
{{- end }}
|
||
|
name: {{ template "victoria-metrics.vmselect.fullname" . }}
|
||
|
spec:
|
||
|
clusterIP: None
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: {{ .Values.vmselect.statefulSet.service.servicePort }}
|
||
|
protocol: TCP
|
||
|
targetPort: http
|
||
|
selector:
|
||
|
{{- include "victoria-metrics.vmselect.matchLabels" . | nindent 4 }}
|
||
|
{{- end -}}
|