homeassistant-charts/templates/service.yaml
2022-10-16 12:12:35 +02:00

20 lines
481 B
YAML

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