---
apiVersion: v1
kind: Service
metadata:
  labels:
    k8s-app: home-assistant
    app.kubernetes.io/name: home-assistant
  name: home-assistant
  namespace: home
spec:
  type: ExternalName
  ports:
    - port: 8123
      targetPort: 8123
      name: http
      protocol: TCP
  externalName: ${HASS_DIRECT}
  selector:
    app.kubernetes.io/instance: home-assistant
    app.kubernetes.io/name: home-assistant
    k8s-app: home-assistant
