homeassistant-charts/templates/service.yaml

20 lines
481 B
YAML
Raw Normal View History

2022-10-16 10:12:35 +00:00
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 }}