2025-04-21 16:53:37 +01:00

24 lines
642 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "uptime-kuma.fullname" . }}
namespace: {{ include "uptime-kuma.namespace" . }}
labels:
{{- include "uptime-kuma.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ include "uptime-kuma.port" . }}
protocol: TCP
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
name: http
selector:
{{- include "uptime-kuma.selectorLabels" . | nindent 4 }}