This guide covers testing for the StreamSpace v2.0 architecture, including the Control Plane, K8s Agent, and Web UI.
Verify Agent Status:
# Check pod
kubectl get pods -n streamspace -l app=streamspace-k8s-agent
# Check logs
kubectl logs -n streamspace deploy/streamspace-k8s-agent -fVerify Connection:
The agent should log: Connected to Control Plane
Verify API Status:
kubectl get pods -n streamspace -l app=streamspace-apiTest Health Endpoint:
kubectl port-forward -n streamspace svc/streamspace-api 8000:8000
curl http://localhost:8000/healthVerify UI Status:
kubectl get pods -n streamspace -l app=streamspace-uiAccess UI:
kubectl port-forward -n streamspace svc/streamspace-ui 3000:80
# Open http://localhost:3000-
Create Session:
kubectl apply -f manifests/examples/session-firefox.yaml
-
Verify Agent Action: Check agent logs to see it receiving the command and creating the pod.
kubectl logs -n streamspace deploy/streamspace-k8s-agent
-
Verify Pod Creation:
kubectl get pods -n streamspace -l session=my-firefox
-
Verify VNC Tunnel: In v2.0, the agent tunnels VNC traffic. Connect via the UI and verify the WebSocket connection in the browser network tab.
-
Trigger Hibernation:
kubectl patch session my-firefox -n streamspace --type merge -p '{"spec":{"state":"hibernated"}}' -
Verify Scale Down:
kubectl get deploy -n streamspace -l session=my-firefox # Replicas should be 0
| Issue | Check |
|---|---|
| Agent not connecting | Check API_URL env var in agent deployment. |
| Session pending | Check agent logs for errors creating K8s resources. |
| VNC disconnects | Check WebSocket connection in browser console. |
StreamSpace Testing Guide