dd613748c57fe3111b19d97fe212895438ae272f
Co-authored-by: aider (openrouter/thinkingmachines/inkling-small:free) <aider@aider.chat>
Kubectl Web GUI
A local web-based GUI for kubectl.
Overview
This app provides a lightweight local interface to manage Kubernetes clusters via kubectl.
Features
- Choose Kubernetes context and namespace
- Search resources: pods, nodes, PVCs, and others
- Perform actions: describe, delete, view logs, and more
Tech Stack
- Backend: Python
- Frontend: Lightweight JavaScript
Plan by Phases
Phase 1: Prototype
- Basic Python backend with kubectl wrapper
- Lightweight frontend with context/namespace selectors
- List pods and nodes
- Basic describe and delete actions
Phase 2: Search & Actions
- Search/filter pods, nodes, PVCs, and other resources
- Add logs viewer
- Expand actions: describe, delete, logs, and more
- Improve error handling and feedback
Phase 3: Polish & Safety
- Confirmation dialogs for destructive actions
- Better UI/UX and responsive layout
- Optional authentication or access controls
- Documentation and setup instructions
Roadmap / Checklist
- Add readme describing kubectl gui plan
- Phase 1: Prototype backend and basic frontend
- Phase 1: Context and namespace selection
- Phase 1: List pods and nodes
- Phase 2: Search pods, nodes, PVCs, and others
- Phase 2: Describe, delete, and logs actions
- Phase 3: Safety confirmations and error handling
- Phase 3: UI polish and documentation
Suggestions
- Use a lightweight Python framework (e.g., Flask or FastAPI) for the backend
- Keep frontend vanilla JS or minimal framework to stay lightweight
- Consider running kubectl via subprocess with proper input validation
- Add a simple status indicator for kubectl connectivity
Languages
JavaScript
45.2%
Python
35.8%
HTML
9.7%
CSS
9.3%