heart/helm/templates/service.yaml
2022-09-07 15:28:52 +02:00

20 lines
493 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: {{ include "heart.fullname" . }}
labels:
{{- include "heart.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{- if and .Values.service.nodePort (eq "NodePort" .Values.service.type) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
{{- include "heart.selectorLabels" . | nindent 4 }}