Skip to main content

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 chainingpods && events && alerts
  • Aliasesp=pods, o=overview, d=diagnose, l=logs
  • Bookmarks — save and recall frequent commands
  • Workflows — chain commands into reusable sequences
  • Watch modewatch <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 top commands)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubsome-1.1.0.tar.gz (97.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kubsome-1.1.0-py3-none-any.whl (134.5 kB view details)

Uploaded Python 3

File details

Details for the file kubsome-1.1.0.tar.gz.

File metadata

  • Download URL: kubsome-1.1.0.tar.gz
  • Upload date:
  • Size: 97.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubsome-1.1.0.tar.gz
Algorithm Hash digest
SHA256 47d49b01eedce357bf0066bb8815fdc38b35c04cec9552a43045e4f3dc31419e
MD5 d4711b3f17985aa886aefbab2ff44c1d
BLAKE2b-256 01e698868c58f759edf41d0cc6ff04b69bd398f3a78935e0bae3f4be64485325

See more details on using hashes here.

File details

Details for the file kubsome-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: kubsome-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubsome-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01684774340ae12dd4f3062ff39f2c92712384bb76b31f59880d23023530b63a
MD5 c952edefbc455f68923c900117dc632f
BLAKE2b-256 f214ffbc9679d48eed2a7b2df376253fa0b4b12e2f6a26b663fd4cd7c8255888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page