This document explains networking behavior for this project and provides practical troubleshooting workflows.
Namespace assumed in examples:
NS=llm-observabilityProfile note:
- The current local example profile keeps
edgeToolbox.enabled=true. - Verify the active profile in CONFIG-PROFILES.md and with
helm get values ... -abefore assuming toolbox availability.
Core in-cluster services:
ollamaon port11434open-webuion port8080ollama-gatewayon port8000open-webui-redis(default mode) orredis(custom mode) on6379
- Browser ->
open-webuiservice - Open WebUI app container ->
ollama-gatewayproxy (OLLAMA_BASE_URLS=http://ollama-gateway:8000/ollama) - Ollama gateway ->
ollamaservice (OLLAMA_BASE_URL) - Open WebUI websocket manager -> Redis URL (
REDIS_URL/WEBSOCKET_REDIS_URL)
Pods resolve services by:
- Short name:
ollama - Namespace name:
ollama.llm-observability - Full FQDN:
ollama.llm-observability.svc.cluster.local
Check DNS from toolbox pod:
kubectl exec -it -n $NS deploy/edge-toolbox -- nslookup ollama
kubectl exec -it -n $NS deploy/edge-toolbox -- nslookup open-webui
kubectl exec -it -n $NS deploy/edge-toolbox -- nslookup ollama-gatewayInspect resolver config in pod:
kubectl exec -it -n $NS deploy/edge-toolbox -- cat /etc/resolv.confInspect CoreDNS health:
kubectl get pods -n kube-system -l k8s-app=kube-dns
kubectl logs -n kube-system -l k8s-app=kube-dns --tail=200A Service forwards traffic only to Pods matching its selector.
kubectl get svc -n $NS ollama -o yaml
kubectl get pods -n $NS --show-labels | grep ollama
kubectl get pods -n $NS -l app.kubernetes.io/name=ollamakubectl get endpoints -n $NS ollama -o yaml
kubectl get endpointslices -n $NS -l kubernetes.io/service-name=ollama -o yamlEmpty endpoints means one of:
- no matching Pods
- matching Pods not Ready
- selector mismatch
This project defaults to ClusterIP and can be locally exposed as LoadBalancer in local values overrides.
kubectl get svc -n $NSkubectl port-forward -n $NS svc/open-webui 8080:8080
kubectl port-forward -n $NS svc/ollama 11434:11434
kubectl port-forward -n $NS svc/ollama-gateway 8000:8000When using LoadBalancer in local clusters, behavior depends on installed LB implementation (for example, ServiceLB/klipper-lb in k3s).
Check assigned external IP/hostname:
kubectl get svc -n $NS -o wide
kubectl describe svc -n $NS open-webuiOpen WebUI websocket support depends on Redis path consistency.
Two possible modes:
- Subchart-managed Redis:
open-webui-redis - Root custom Redis:
redis
The stack should use one coherent websocket URL strategy at a time.
kubectl get deploy,svc -n $NS | grep -E 'open-webui-redis|redis'
kubectl logs -n $NS statefulset/open-webui --tail=200 | grep -Ei 'redis|websocket|error|warn'kubectl exec -it -n $NS deploy/edge-toolbox -- nc -vz redis 6379
kubectl exec -it -n $NS deploy/edge-toolbox -- nc -vz open-webui-redis 6379kubectl exec -it -n $NS deploy/edge-toolbox -- edge-toolbox dns ollama ollama-gateway open-webui open-webui-redis
kubectl exec -it -n $NS deploy/edge-toolbox -- edge-toolbox ollama-smokekubectl exec -it -n $NS deploy/edge-toolbox -- curl -sS http://ollama:11434/api/tags
kubectl exec -it -n $NS deploy/edge-toolbox -- curl -sS http://ollama-gateway:8000/healthz
kubectl exec -it -n $NS deploy/edge-toolbox -- curl -sSI http://open-webui:8080/Run this sequence when a service is failing:
- Check service object
kubectl get svc -n $NS <SERVICE>
kubectl describe svc -n $NS <SERVICE>- Check endpoints
kubectl get endpoints -n $NS <SERVICE> -o yaml
kubectl get endpointslices -n $NS -l kubernetes.io/service-name=<SERVICE>- Check backing pods and readiness
kubectl get pods -n $NS -l <LABEL_SELECTOR> -o wide
kubectl describe pod -n $NS <POD>
kubectl logs -n $NS <POD> --all-containers --tail=200- Check in-cluster connectivity from toolbox
kubectl exec -it -n $NS deploy/edge-toolbox -- nslookup <SERVICE>
kubectl exec -it -n $NS deploy/edge-toolbox -- nc -vz <SERVICE> <PORT>- Check namespace consistency
kubectl get all -n $NS
kubectl get all -A | grep -E 'ollama|open-webui|ollama-gateway|edge-toolbox|redis'Current stack does not require NetworkPolicy by default, so traffic is typically unrestricted inside namespace unless cluster policies enforce restrictions.
Check for policies:
kubectl get networkpolicy -n $NS
kubectl describe networkpolicy -n $NSIf policies are present and traffic fails, inspect ingress/egress rules against:
- source pod labels
- destination pod labels
- destination ports
- namespace selectors
Open WebUI subchart supports:
- Ingress (
ingress.enabled) - Route (
route.enabled) - Managed certificate (
managedCertificate.enabled)
Verify objects:
kubectl get ingress -n $NS
kubectl get httproute,tcproute,grpcroute -n $NS
kubectl describe ingress -n $NSkubectl get pods,svc,endpoints -n $NS -wkubectl get events -n $NS --sort-by=.lastTimestamp | grep -Ei 'dns|network|connection|endpoint|probe|timeout'kubectl get endpoints -n $NS -w
kubectl get endpointslices -n $NS -w- In-cluster path uses Service DNS and cluster networking.
- Local path for browsers/tools uses LoadBalancer, NodePort, or port-forward.
If local access fails but in-cluster works, focus on:
- service type/external IP
- host firewall
- local LB implementation
- port-forward session health
- Service selector mismatch causes empty endpoints.
- Namespace mismatch between components causes DNS/service failures.
- Redis mode mismatch (subchart Redis vs custom Redis) causes websocket instability.
- Pod readiness failing removes endpoint addresses, appearing as intermittent service failure.
- CoreDNS issues can mimic app/network failures.
Run this after each deploy/upgrade:
kubectl get svc,endpoints -n $NS
kubectl get pods -n $NS -o wide
kubectl exec -it -n $NS deploy/edge-toolbox -- edge-toolbox dns ollama ollama-gateway open-webui open-webui-redis
kubectl exec -it -n $NS deploy/edge-toolbox -- edge-toolbox ollama-smoke
kubectl port-forward -n $NS svc/ollama-gateway 8000:8000
curl -s http://localhost:8000/healthz | jqdocs/KUBECTL-COMMAND-REFERENCE.mddocs/GO-KUBERNETES-AUTOMATION.mddocs/PROJECT-DOCUMENTATION.md