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[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 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

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

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.12.11.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

kubsome-1.12.11-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kubsome-1.12.11.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubsome-1.12.11.tar.gz
Algorithm Hash digest
SHA256 c33913d3e9e79bfb39d507aaf5f66c3dd9c1838549ace77704d78c1f2ae88cbf
MD5 4545412595901730f1eeb873a412bccc
BLAKE2b-256 34c0c9537957ddfaaa97b1282b82f0daa14a0d0fbcba5723bf1d007e2efb0c5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubsome-1.12.11.tar.gz:

Publisher: workflows.yml on aloketewary/kubsome

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: kubsome-1.12.11-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kubsome-1.12.11-py3-none-any.whl
Algorithm Hash digest
SHA256 aea4c406176cca7039461e9ebd1d5cb8a4fbb62139f8b860223e5ac60992273a
MD5 835b882b2c84bfb43efb8e7d2365e5a7
BLAKE2b-256 4821da3604d0c7cabb36bcab1c8c5d549cd5ed81f5317972bef84b3215d66b49

See more details on using hashes here.

Provenance

The following attestation bundles were made for kubsome-1.12.11-py3-none-any.whl:

Publisher: workflows.yml on aloketewary/kubsome

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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