apiVersion: apps/v1 kind: Deployment metadata: name: api namespace: nvi spec: replicas: 1 selector: matchLabels: app: api template: metadata: labels: app: api spec: hostAliases: # lng.local.ar resolves to ::1 via the host's dnsmasq → coredns chain, # which is the pod's own loopback (wrong). Override to the kind bridge # gateway so traffic from this pod reaches the host's system Caddy and # gets reverse-proxied to Langfuse on :3000. - ip: "172.19.0.1" hostnames: - "lng.local.ar" # mcrndeb is the GPU box on the LAN (vLLM lives there). kind-nvi # pods reach it via routing through the host; we just need the name # to resolve since coredns doesn't know about LAN hostnames. - ip: "192.168.1.3" hostnames: - "mcrndeb" containers: - name: api image: nvi-api ports: - containerPort: 8000 envFrom: - configMapRef: name: nvi-config - secretRef: name: nvi-secrets readinessProbe: httpGet: path: /healthz port: 8000 initialDelaySeconds: 5 periodSeconds: 10 resources: requests: memory: 256Mi cpu: 200m limits: memory: 1Gi --- apiVersion: v1 kind: Service metadata: name: api namespace: nvi spec: selector: app: api ports: - port: 8000 targetPort: 8000