Files
helm-charts/probara/templates/service-api.yaml
T
2026-10-18 11:37:02 +03:00

25 lines
608 B
YAML

{{- if .Values.api.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "monitoring-platform.fullname" . }}-api
labels:
{{- include "monitoring-platform.labels" . | nindent 4 }}
app.kubernetes.io/component: api
spec:
type: ClusterIP
ports:
- port: {{ .Values.api.httpPort }}
targetPort: http
protocol: TCP
name: http
- port: {{ .Values.api.metricsPort }}
targetPort: metrics
protocol: TCP
name: metrics
selector:
{{- include "monitoring-platform.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: api
{{- end }}