# Ollama runs on the host as a systemd service, not in K8s.
# This ExternalName service lets pods reach it via K8s DNS:
#   ollama.bytelyst-infra.svc:11434
#
# On the VM, the node's internal IP is used. The setup script
# patches the Endpoints IP at deploy time.
apiVersion: v1
kind: Service
metadata:
  name: ollama
  namespace: bytelyst-infra
spec:
  ports:
  - port: 11434
    targetPort: 11434
---
apiVersion: v1
kind: Endpoints
metadata:
  name: ollama
  namespace: bytelyst-infra
subsets:
- addresses:
  - ip: NODE_IP_PLACEHOLDER
  ports:
  - port: 11434
