Pod Terminal¶
NextSight AI provides interactive terminal access to your pods directly from the browser.
Interactive Shell Access¶

Full terminal emulation with PTY support, WebSocket-based communication, and multi-container support
Pod Exec¶
Execute commands inside running containers:
Opening a Terminal¶
- Navigate to Kubernetes > Pods
- Click on a pod
- Select Terminal tab
- Choose container (if multiple)
- Select shell (
/bin/sh,/bin/bash)
Features¶
- Full PTY Support - Colors, cursor movement, tab completion
- Terminal Resize - Automatically adjusts to window size
- Copy/Paste - Use Ctrl+C/Ctrl+V (or Cmd on Mac)
- Session Persistence - Survives page navigation
Supported Shells¶
| Shell | Path |
|---|---|
| sh | /bin/sh |
| bash | /bin/bash |
| ash | /bin/ash |
| zsh | /bin/zsh |
Debug Containers¶
For distroless or minimal containers without a shell:
What Are Debug Containers?¶
Kubernetes ephemeral containers let you attach a debug container to a running pod without restarting it.
Opening Debug Session¶
- Click Debug on a pod
- Select debug image
- Optionally target a specific container
Available Debug Images¶
| Image | Use Case |
|---|---|
| busybox:latest | Basic debugging |
| alpine:latest | Package management |
| nicolaka/netshoot:latest | Network debugging |
| ubuntu:latest | Full toolset |
Example: Network Debugging¶
# Inside netshoot container
dig kubernetes.default.svc.cluster.local
curl http://service-name:8080/health
netstat -tlnp
tcpdump -i eth0
Log Viewer¶
Real-time log streaming:
Features¶
- WebSocket Streaming - Live updates
- Search - Filter by text
- Timestamps - Optional timestamp display
- Tail Lines - Configure initial lines (100-1000)
- Download - Export logs to file
Pod Events¶
For pending/failed pods, view Kubernetes events:
- Scheduling failures
- Image pull errors
- Resource constraints
- Node issues
kubectl Terminal¶
Execute kubectl commands directly:
- Go to Tools > kubectl Terminal
- Enter commands
- View output
Safety Features¶
Dangerous commands are blocked:
kubectl delete namespacekubectl delete --all- Custom blocklist
Common Commands¶
Shell Terminal¶
Full bash access with pre-installed tools:
- kubectl - Kubernetes CLI
- helm - Helm package manager
- curl - HTTP requests
- jq - JSON processing
Blocked Commands¶
For security, these are blocked:
rm -rf /sudochmod 777- Custom patterns
WebSocket Protocol¶
Message Types¶
Client → Server:
Server → Client:
{"type": "output", "data": "..."}
{"type": "status", "status": "connected"}
{"type": "error", "error": "...", "code": 500}
Security¶
Input Validation¶
All inputs are validated:
- Kubernetes name format (RFC 1123)
- Shell whitelist
- Debug image whitelist
RBAC Requirements¶
Users need these permissions: