homelab-k3s/apps/home-assistant/ingress.yaml
jasonwitty 8afac39d03 Import manifests reverse-engineered from live cluster
Captured 2026-07-26 from rpi-master (k3s v1.30.3) and cleaned of runtime
fields. Six apps as per-app kustomizations: vaultwarden, searxng,
home-assistant, nginx, pihole(+unbound), unified-streaming.

Intentional divergences from live state:
- pihole WEBPASSWORD and USP_LICENSE_KEY moved from inline plaintext env
  to secretKeyRef (secrets gitignored; templates in secret.example.yaml)
- HA ingress defaultBackend fixed (pointed at nonexistent service)
- unifiedstreaming-svc kept as ClusterIP (LoadBalancer could never bind
  port 80 behind svclb-traefik)

Validated against the live cluster with kubectl apply --dry-run=server:
no immutable-field conflicts; one-time kubectl replace procedure for the
two env->secretKeyRef migrations documented in README.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-26 02:13:56 -07:00

38 lines
992 B
YAML

# NOTE: the live object's defaultBackend pointed at a service named
# "home-assistant", which does not exist (the real service is
# "home-assistant-svc"). Fixed here — this is the one intentional divergence
# from the cluster state captured 2026-07-26.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: home-assistant
namespace: home-assistant
spec:
ingressClassName: traefik
defaultBackend:
service:
name: home-assistant-svc
port:
number: 80
rules:
- host: ha.wittyoneoff.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: home-assistant-svc
port:
number: 80
- host: ha-origin.wittyoneoff.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: home-assistant-svc
port:
number: 80