diff --git a/home-apps/ai-bot.yaml b/home-apps/ai-bot.yaml index 7a04f2c..ccb3595 100644 --- a/home-apps/ai-bot.yaml +++ b/home-apps/ai-bot.yaml @@ -1,13 +1,17 @@ +# Headless Service for external endpoint (no selector) apiVersion: v1 kind: Service metadata: - name: moltbot-gateway # e.g., home-assistant, grafana-external + name: moltbot-gateway namespace: home-apps + labels: + name: moltbot-gateway spec: + # No selector - this is a headless service for external endpoint ports: - name: gateway - port: 18789 # Port exposed within cluster - targetPort: 18789 # e.g., 3031, 8080, 9090 + port: 18789 + targetPort: 18789 protocol: TCP - name: bridge port: 18790 @@ -18,48 +22,23 @@ spec: apiVersion: discovery.k8s.io/v1 kind: EndpointSlice metadata: - name: moltbot-gateway # MUST match Service name exactly + name: moltbot-gateway-external namespace: home-apps labels: - kubernetes.io/service-name: moltbot-gateway # Required: links EndpointSlice to Service + kubernetes.io/service-name: moltbot-gateway addressType: IPv4 endpoints: - addresses: - - 192.168.1.10 # e.g., 192.168.1.4 + - "192.168.1.10" ports: - name: gateway - targetPort: gateway port: 18789 protocol: TCP - name: bridge - targetPort: bridge port: 18790 protocol: TCP --- -apiVersion: v1 -kind: Service -metadata: - name: moltbot-gateway - namespace: home-apps - labels: - name: moltbot-gateway -spec: - type: ClusterIP - selector: - app: moltbot-gateway - ports: - - name: gateway - targetPort: gateway - port: 18789 - protocol: TCP - - name: bridge - targetPort: bridge - port: 18790 - protocol: TCP - ---- - apiVersion: networking.k8s.io/v1 kind: Ingress metadata: