AI-native Kubernetes Operational Workspace
Project description
๐ Kubsome
AI-native Kubernetes Operational Workspace
Faster debugging. Safer operations. Less cognitive load.
Install
From PyPI (recommended)
pip install kubsome
kubsome init # Generate default config
kubsome # Start
With optional features:
pip install "kubsome[tui]" # + Full-screen TUI
pip install "kubsome[all]" # Everything
From source
git clone https://github.com/aloketewary/kubsome.git && cd kubsome && ./install.sh
Docker
docker run -p 8000:8000 -v ~/.kube:/root/.kube ghcr.io/aloketewary/kubsome:latest
Homebrew (macOS)
brew tap aloketewary/kubsome https://github.com/aloketewary/kubsome.git
brew install kubsome
Helm
helm install kubsome deploy/helm/kubsome/ -n kubsome --create-namespace
Quick Start
kubsome # Interactive CLI
kubsome serve # API + Web UI (auto-opens browser)
kubsome tui # Full-screen terminal dashboard
kubsome --exec "pods" # Single command (CI/CD)
Commands (100+)
Type help inside Kubsome for the full list. Highlights:
# Observe
overview # Cluster dashboard + anomaly alerts
pods # Pod list with health
pods watch # Live monitoring
top pods # CPU/memory usage
uptime # Cluster availability
scorecard # A-F health grade
# Operate
logs payment # Fuzzy-match pod logs
correlate-logs pod-a pod-b # Multi-pod log timeline
rollout billing-api # Rollout status
restart gateway # Rolling restart
scale payment 5 # Scale replicas
rollback-preview billing # Diff before rollback
# Diagnose
inspect customer # Deep pod inspection
diagnose payment # Root cause analysis + playbook
dep-health payment-api # Dependency health map
trace payment-api # Resource relationship map
fix payment-api # Auto-remediate (non-prod)
# AI (natural language)
why is payment-api failing # Root cause explanation
how many customer pods running # Pod count
is it safe to restart billing # Risk analysis
summarize cluster health # Health summary
what changed recently # Activity analysis
# kubectl (fuzzy)
describe pod customer # Fuzzy โ full inspect view
get pods # Pretty table
kubectl describe customer # Auto-resolves pod name
delete pod billing # Fuzzy match + confirm
# Cost & Security
cost-estimate # $/month per deployment
security # Misconfiguration scan
optimize # Resource right-sizing
# Monitoring
watch-alert payment crash # Background monitor
watch-status # Active watches
diff-timeline # What changed in 24h
pin "health" "scorecard" # Save query for dashboard
pins # List saved queries
# Incident Mode
incident start API outage # Start tracking
note found OOM in payment # Add observation
incident share # Share to Slack/Teams
incident stop # Close & export report
# Growth (v1.12)
doctor # Pre-flight diagnostics
policy # Check cluster guardrails
cost-trend # Cost forecast + savings
stats # Usage analytics
schedule add daily "0 8 * * *" scorecard,export
plugin install <name> # Install from registry
logs pod --regex "OOM" --since 1h
Features
- NLP Intent Engine โ structured intent classification + entity extraction
- Fuzzy matching โ type partial names, Kubsome finds the resource
- Smart suggestions โ typo correction ("Did you mean: pods")
- Natural language โ "show me logs for payment" just works
- AI disambiguation โ asks which pod when multiple match
- Auto-remediation โ safe auto-fix with production guard
- Cluster scorecard โ A-F grade across 4 dimensions
- Cost estimation โ $/month per deployment
- Dependency health โ find root cause via service graph
- Watch & alert โ background monitoring with notifications
- 26 runbooks โ step-by-step remediation guides
- Command chaining โ
pods && events && alerts - Aliases โ
p=pods,o=overview,d=diagnose,l=logs - Bookmarks โ save and recall frequent commands
- Workflows โ chain commands into reusable sequences
- Watch mode โ
watch <any-command>for live refresh - Multi-pod log correlation โ merged timeline from multiple pods
- YAML diff โ side-by-side revision comparison
- Multi-cluster compare โ drift detection between environments
- Export โ Markdown/JSON reports for sharing
- Audit log โ tracks all destructive operations
- Plugin system โ extend with custom commands
- Plugin marketplace โ install from registry (
plugin install <name>) - Policy engine โ define guardrails in
.kubsome/policies.yaml - Scheduled workflows โ cron-like recurring commands
- Cost forecasting โ projected spend based on usage trend
- Incident sharing โ export to Slack/Teams/PagerDuty/OpsGenie
- Team runbooks โ Git-synced
.kubsome/runbooks/directory - AI follow-ups โ contextual next-question suggestions
- Log regex search โ
logs <pod> --regex "pattern" --since 1h - 7-day metrics history โ usage trends for right-sizing
- 171 tests โ comprehensive test coverage
Requirements
- Python 3.9+
- kubectl configured with cluster access
- metrics-server (for
topcommands)
Configuration
Settings in ~/.kubsome/config.yaml:
refresh_interval: 2
notifications: true
theme: dark # dark, light, minimal, hacker
aliases:
p: pods
o: overview
d: diagnose
llm:
provider: local # or: ollama
Architecture
User Input
โ
Command Resolver (exact match)
โ (not found)
Rule-Based NLP (regex patterns)
โ (not found)
Intent Engine (fuzzy classification + entity extraction)
โ (not found)
Suggestion Fallback ("Did you mean: pods")
main.py โ Entry point (CLI, serve, tui, exec)
core/nlp/ โ Intent engine (intents, matcher, actions)
core/ai/ โ 8 intelligence modules + 26 playbooks
core/collectors/ โ 30+ data collectors
core/renderers/ โ 21 presentation renderers
core/diagnostics/ โ Root cause engine
core/remediation.py โ Auto-fix with safety guards
core/watch_alert.py โ Background condition monitoring
core/cache.py โ TTL cache for kubectl calls
core/scheduler.py โ Cron-like recurring commands
core/policy.py โ Cluster guardrail enforcement
core/telemetry.py โ Local usage analytics
api/ โ FastAPI REST + WebSocket backend (126 routes)
ui/ โ Angular 20 + PrimeNG web dashboard (38 pages)
deploy/helm/ โ Helm chart for in-cluster deployment
deploy/krew/ โ kubectl plugin for krew
tests/ โ 171 tests
Web UI
Access at http://localhost:8000/app after kubsome serve.
Pages: Dashboard, Monitor, Pods, Events, Metrics, Deployments, Logs, Jobs, RBAC, Network, Resources, Scorecard, Cost, Runbooks, Compare, AI Assistant, Terminal, Settings, Audit, Policy, Health, Schedules.
See docs/web-ui.md for detailed page descriptions.
Documentation
- CLI Guide โ Full command reference
- API Reference โ REST + WebSocket endpoints
- Web UI Guide โ Page-by-page walkthrough
- Architecture โ System design and patterns
- Roadmap โ Planned features and milestones
- Changelog โ Release history
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kubsome-1.13.4.tar.gz.
File metadata
- Download URL: kubsome-1.13.4.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a9d33fe5ff9e54bf669ec7f83c3477d2d6c9e9c262b8f365c81f7e9f7243008
|
|
| MD5 |
946feb12704cec38e578bc4be12930c4
|
|
| BLAKE2b-256 |
092a5d0a554c233270661b9e23c8dc6d2bbfcd6c39471c8384ac8fbf45a4ab71
|
Provenance
The following attestation bundles were made for kubsome-1.13.4.tar.gz:
Publisher:
workflows.yml on aloketewary/kubsome
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubsome-1.13.4.tar.gz -
Subject digest:
8a9d33fe5ff9e54bf669ec7f83c3477d2d6c9e9c262b8f365c81f7e9f7243008 - Sigstore transparency entry: 1586298211
- Sigstore integration time:
-
Permalink:
aloketewary/kubsome@640e35164cd64ee9dccaa2864bc27a8c1e7f46b9 -
Branch / Tag:
refs/tags/v1.13.4 - Owner: https://github.com/aloketewary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflows.yml@640e35164cd64ee9dccaa2864bc27a8c1e7f46b9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kubsome-1.13.4-py3-none-any.whl.
File metadata
- Download URL: kubsome-1.13.4-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1943195f95937707938a572a07bca503f2ac6ff629d2f445542b511968b2b42b
|
|
| MD5 |
76d3fef7c0b7d612215ecd614aad1b1a
|
|
| BLAKE2b-256 |
ec9938dba3ac9e3347063f2516c8f6c07a4f65fd73436dd1b22202af4d01f086
|
Provenance
The following attestation bundles were made for kubsome-1.13.4-py3-none-any.whl:
Publisher:
workflows.yml on aloketewary/kubsome
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kubsome-1.13.4-py3-none-any.whl -
Subject digest:
1943195f95937707938a572a07bca503f2ac6ff629d2f445542b511968b2b42b - Sigstore transparency entry: 1586298357
- Sigstore integration time:
-
Permalink:
aloketewary/kubsome@640e35164cd64ee9dccaa2864bc27a8c1e7f46b9 -
Branch / Tag:
refs/tags/v1.13.4 - Owner: https://github.com/aloketewary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflows.yml@640e35164cd64ee9dccaa2864bc27a8c1e7f46b9 -
Trigger Event:
release
-
Statement type: