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[api]" # + REST API + Web UI
pip install "kubsome[all]" # Everything
From source
git clone https://github.com/aloketewary/kubsome.git && cd kubsome && ./install.sh
Then:
source venv/bin/activate
kubsome
Quick Start
kubsome # Interactive CLI
kubsome --exec "check" # Single command (CI/CD)
kubsome --exec "export json" # Generate report
Commands (85+)
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
# Operate
logs payment # Fuzzy-match pod logs
logcat payment --follow # Combined logs from all replicas (logcat style)
rollout billing-api # Rollout status
restart gateway # Rolling restart
scale payment 5 # Scale replicas
# Diagnose
inspect customer # Deep pod inspection
diagnose payment # Root cause analysis + playbook
trace payment-api # Resource relationship map
netcheck auth # Network diagnostics
# AI (natural language)
why is payment-api failing # Root cause explanation
summarize cluster health # Health summary
which pods are unhealthy # Degraded pod list
any anomalies detected # Anomaly scan
what changed recently # Recent activity
# Security & Cost
security # Misconfiguration scan
optimize # Resource right-sizing
unused # Find orphaned resources
# Incident Mode
incident start API outage # Start tracking
note found OOM in payment # Add observation
incident stop # Close & export report
Features
- 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
- 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 - Logcat — combined logs from all pods of a deployment
- Playbooks — step-by-step remediation guides
- Anomaly detection — restart spikes, event storms, cascading failures
- Multi-cluster compare — drift detection between environments
- Export — Markdown/JSON reports for sharing
- Audit log — tracks all destructive operations
- Desktop notifications — alerts for critical issues
- Plugin system — extend with custom commands
- Persistent history — command recall across sessions
- Production safety — confirmation prompts for dangerous actions
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 (for AI-powered explain)
Architecture
main.py → 150 lines, clean entry point
core/dispatcher.py → Command handler registry
core/ai/ → 8 intelligence modules
core/collectors/ → 24 data collectors
core/renderers/ → 21 presentation renderers
core/diagnostics/ → Root cause engine
100 Python files → Complete operational platform
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.0.0.tar.gz.
File metadata
- Download URL: kubsome-1.0.0.tar.gz
- Upload date:
- Size: 96.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42630ffa05933646f2b41cd1ae76df6591a78ef8052df24b8bb6d816f81dc7cb
|
|
| MD5 |
033f664e41858866305399ede4451d0c
|
|
| BLAKE2b-256 |
f27bc0d0504debf772f27db225df5a98871839d505a12df508ca5a28ee2aafd2
|
Provenance
The following attestation bundles were made for kubsome-1.0.0.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.0.0.tar.gz -
Subject digest:
42630ffa05933646f2b41cd1ae76df6591a78ef8052df24b8bb6d816f81dc7cb - Sigstore transparency entry: 1473795436
- Sigstore integration time:
-
Permalink:
aloketewary/kubsome@2940695bc8d85906b835d5dbfbf41fa99a0761ba -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/aloketewary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflows.yml@2940695bc8d85906b835d5dbfbf41fa99a0761ba -
Trigger Event:
release
-
Statement type:
File details
Details for the file kubsome-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kubsome-1.0.0-py3-none-any.whl
- Upload date:
- Size: 133.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a07e5d85c12f5f58b6c5a11d4acdacd45443dd23961aee6d2ca88ec372d6e03
|
|
| MD5 |
ab7758114f3bbdce212ebda059c3cef2
|
|
| BLAKE2b-256 |
7b362970e3d636cd230a7e9645628d441dbaf529cac5d3079e0f1ca34cb90810
|
Provenance
The following attestation bundles were made for kubsome-1.0.0-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.0.0-py3-none-any.whl -
Subject digest:
3a07e5d85c12f5f58b6c5a11d4acdacd45443dd23961aee6d2ca88ec372d6e03 - Sigstore transparency entry: 1473795475
- Sigstore integration time:
-
Permalink:
aloketewary/kubsome@2940695bc8d85906b835d5dbfbf41fa99a0761ba -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/aloketewary
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflows.yml@2940695bc8d85906b835d5dbfbf41fa99a0761ba -
Trigger Event:
release
-
Statement type: