helm-charts/autopush/templates/autoconnect/service.yaml

28 lines
751 B
YAML
Raw Permalink Normal View History

2025-01-03 14:18:54 +01:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "autopush.fullname" . }}-autoconnect
labels:
{{- include "autopush.labels" . | nindent 4 }}
app.kubernetes.io/metrics: "true"
2025-01-03 14:18:54 +01:00
spec:
type: {{ .Values.autoconnect.service.type }}
selector:
{{- include "autopush.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: autoconnect
ports:
- port: {{ .Values.autoconnect.service.ports.http }}
2025-01-03 14:18:54 +01:00
targetPort: http
protocol: TCP
name: http
- port: {{ .Values.autoconnect.service.ports.router }}
targetPort: router
protocol: TCP
name: router
2025-01-03 14:18:54 +01:00
{{- if .Values.prometheus.enabled }}
- port: 9100
targetPort: metrics
protocol: TCP
name: metrics
{{- end }}