Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API endpoints for managing Kubernetes Pods
GET /api/pods?namespace=default&context=minikube
{ "pods": [{ "name": "nginx-abc123", "namespace": "default", "status": "Running", "phase": "Running", "nodeName": "node-1", "podIP": "10.244.1.5", "containers": [{ "name": "nginx", "image": "nginx:1.21", "ready": true, "restartCount": 0 }] }] }
GET /api/pods/[name]?namespace=default
GET /api/pods/[name]/logs?namespace=default&container=nginx&follow=true&tail=100
container
follow
tail
since
POST /api/pods/[name]/restart Body: { "namespace": "default" }
GET /api/pods/[name]/events?namespace=default
// Stream logs const response = await fetch('/api/pods/nginx-abc123/logs?namespace=default&follow=true') const reader = response.body.getReader() const decoder = new TextDecoder() while (true) { const { done, value } = await reader.read() if (done) break console.log(decoder.decode(value)) }