Files
k8scd/home-assistant/service.yaml
T
Ruben Hensen f2716e1169 home-assistant: mark the EndpointSlice endpoint ready
The API server fills in conditions on every endpoint, which left Argo CD showing the slice as OutOfSync. Spell it out so desired and live state match.
2026-10-22 11:07:42 +02:00

31 lines
704 B
YAML

# Home Assistant runs outside the cluster on 192.168.1.202. ingress-nginx
# 1.13 resolves an ExternalName as a DNS name and fails on a bare IP, so
# point a selector-less Service at it with a hand-written EndpointSlice.
apiVersion: v1
kind: Service
metadata:
name: home-assistant-external
spec:
ports:
- name: http
port: 8123
protocol: TCP
targetPort: 8123
---
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: home-assistant-external-1
labels:
kubernetes.io/service-name: home-assistant-external
addressType: IPv4
ports:
- name: http
port: 8123
protocol: TCP
endpoints:
- addresses:
- 192.168.1.202
conditions:
ready: true