惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell

Show HN

GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: Generate Claude Code Workflows using Spec Driven Development approach Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal).
GitHub - lucasepe/kctx: A Kubernetes context engine for h...
lucasepe · 2026-06-11 · via Show HN

A small read-only Kubernetes context engine for humans, scripts, and AI agents.

kctx turns Kubernetes API state into structured operational context.

Instead of asking every operator, script, dashboard, or agent to reconstruct relationships from raw YAML, kctx exposes a compact model of:

  • entities: Pods, Services, workloads, Nodes, PVCs, ConfigMaps, Secrets, CRDs
  • relations: ownership, selection, scheduling, service routing, dependencies
  • signals: factual observations such as unhealthy Pods, missing endpoints, warning Events, failed readiness, or degraded workloads
  • graphs: dependency and ownership views around supported resources
  • dumps: deterministic namespace snapshots for machines and incident review

The tool is intentionally conservative: it reads cluster state, normalizes facts, and avoids speculative root-cause claims.

The motivation, philosophy, and design argument behind kctx are covered in longer form here:

What It Is For

Use kctx when you want to answer questions like:

  • What owns this Pod?
  • Which Services route to these backends?
  • Why does this namespace look unhealthy?
  • What resources and signals should I attach to an incident?
  • What compact Kubernetes context should an AI agent receive before reasoning?
  • What does this supported CRD mean operationally right now?

kctx is useful for SREs, platform teams, Kubernetes operators, CI/CD diagnostics, internal tooling, MCP tools, and AI SRE workflows.

What It Is Not

kctx is not:

  • a monitoring platform
  • a logging or metrics system
  • a dashboard suite
  • a remediation engine
  • a Kubernetes cluster manager
  • a graph database
  • an AI assistant
  • a replacement for kubectl

It does not mutate resources, restart workloads, apply manifests, or guess root cause.

Data Safety

kctx avoids raw manifests, Secret data, ConfigMap data, raw environment variables, logs, and workload metrics. Metadata and Kubernetes messages that are returned by supported outputs pass through a small redaction policy for common secret-bearing keys and text patterns.

Quick Start

Install the CLI:

Or install from the published release script:

curl -fsSL https://raw.githubusercontent.com/lucasepe/kctx/main/install.sh | bash

Then run it against your current Kubernetes context:

kctx health namespace default
kctx explain pod <pod-name> --namespace default
kctx trace service <service-name> --namespace default
kctx graph pod <pod-name> --namespace default
kctx dump namespace default

For local development:

go run . health namespace default

Install kctx serve With Helm

Install the in-cluster read-only HTTP server from a packaged release chart:

VERSION=0.2.0
helm upgrade --install kctx \
  "https://github.com/lucasepe/kctx/releases/download/v${VERSION}/kctx-${VERSION}.tgz" \
  --namespace kctx-system \
  --create-namespace

Then expose it locally:

kubectl -n kctx-system port-forward svc/kctx 8080:8080
curl http://localhost:8080/health/namespace/default

From a source checkout, install the local chart and choose the image tag to run:

helm upgrade --install kctx ./chart \
  --namespace kctx-system \
  --create-namespace \
  --set image.tag=dev

See chart/README.md for chart values, local kind setup, and NodePort examples.

Commands

kctx explain

Resolve structured context around one resource. Native Pod context is supported, and registered CRD adapters can provide ecosystem-specific context.

kctx explain pod api-xyz --namespace payments
kctx explain applications.argoproj.io guestbook --namespace argocd

kctx graph

Build a graph around a supported resource. JSON is the default output; Mermaid and DOT renderers are available for graph-oriented views.

kctx graph pod api-xyz --namespace payments
kctx graph pod api-xyz --namespace payments --render mermaid
kctx graph applications.argoproj.io guestbook --namespace argocd --render dot

kctx trace service

Trace a Service to EndpointSlices, endpoints, Pods, owners, Nodes, and factual service health signals.

kctx trace service payments-api --namespace payments

kctx health namespace

Produce a compact namespace health snapshot.

kctx health namespace payments

kctx dump namespace

Export a deterministic namespace context snapshot for automation, incident review, or AI-agent grounding.

kctx dump namespace payments > payments-dump.json

kctx serve

Expose the same context engine through a lightweight read-only HTTP API.

kctx serve
curl http://localhost:8080/health/namespace/default

CRD Adapters

kctx can fetch arbitrary Kubernetes resources through discovery, but it does not pretend that every custom resource can be understood generically.

Ecosystem-specific semantics belong in explicit adapters. An adapter can turn a CRD into the same core contract used everywhere else: resource identity, compact status, related entities, relations, signals, and optionally graph nodes and edges.

The current adapter set covers Argo CD Application, Argo CD AppProject, and cert-manager Certificate resources.

Documentation

The long-form documentation is organized as a PDF eBook.

Support

If kctx saves you time when debugging Kubernetes workloads, consider supporting its maintenance:

Support helps fund release work, compatibility testing, documentation, and ongoing Kubernetes, Argo CD, and cert-manager integration maintenance.

Project Status

kctx is under active development. It is already useful as a read-only Kubernetes context tool, but production hardening is still in progress.

See ROADMAP.md for current production-readiness work, planned features, and open design areas.