homeassistant-charts/templates/service.yaml

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 }}