VictoriaMetrics/deployment/k8s/helm/victoria-metrics/templates/vmstorage-service.yaml
2019-05-23 00:25:38 +03:00

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 -}}