mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-13 13:11:37 +01:00
33 lines
962 B
YAML
33 lines
962 B
YAML
{{- if .Values.vmstorage.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
{{- if .Values.vmstorage.service.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.vmstorage.service.annotations | indent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "victoria-metrics.vmstorage.labels" . | nindent 4 }}
|
|
{{- if .Values.vmstorage.service.labels }}
|
|
{{ toYaml .Values.vmstorage.service.labels | indent 4 }}
|
|
{{- end }}
|
|
name: {{ template "victoria-metrics.vmstorage.fullname" . }}
|
|
spec:
|
|
clusterIP: None
|
|
ports:
|
|
- port: {{ .Values.vmstorage.service.servicePort }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
- port: {{ .Values.vmstorage.service.vmselectPort }}
|
|
targetPort: vmselect
|
|
protocol: TCP
|
|
name: vmselect
|
|
- port: {{ .Values.vmstorage.service.vminsertPort }}
|
|
targetPort: vminsert
|
|
protocol: TCP
|
|
name: vminsert
|
|
selector:
|
|
{{- include "victoria-metrics.vmstorage.matchLabels" . | nindent 4 }}
|
|
{{- end -}}
|