k8s-lookout

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0

README

k8s-lookout

Data-plane intelligence for core-agent: deterministic, token-dense eyes on Kubernetes/GKE clusters for LLM-driven troubleshooting agents.

Two halves, one multicall binary (lookout):

  • Read-path — one-shot diagnostic commands an agent runs mid-investigation (lookout triage|state|stab|perf|cloud|bundle|health), emitting compressed, secret-safe, logfmt/JSON findings instead of raw telemetry dumps.
  • Watch-path — lookout watch, a resident per-cluster sentinel that turns leading indicators (state transitions, trend slopes, expiry countdowns) into per-incident agent sessions with warm context — detecting issues before, or as, they happen rather than after.

Status: M0 complete. lookout watch has shipped: the k8s-event-watcher sidecar moved here from core-agent verbatim — flags, wire payloads, and exit codes are behavior-identical, so existing watcher deployments swap images with zero config change (see docs/milestones/M0.md for the exit-check evidence). Images are published at ghcr.io/go-steer/lookout starting with v0.1.0. The complete specification is docs/DESIGN.md; next up is the read-path core (M1, §14).

Roughly 80% of the suite is pure client-go and runs on any conformant Kubernetes cluster; GKE/GCP-specific capability lives behind a cloud-provider boundary (DESIGN.md §2).

Ecosystem

Repo Role
core-agent the agent daemon; lookout talks to it over POST /sessions + /inject
ax fleet layer; consumes lookout's rollup-ready signal schema across clusters

License

Apache 2.0 — see LICENSE.

Directories

Path Synopsis
cmd
lookout command
Command lookout is the single multicall binary of k8s-lookout (DESIGN.md §4.1): deterministic, token-dense reads of Kubernetes/GKE clusters for agent-driven troubleshooting, plus the resident per-cluster sentinel, `lookout watch`.
Command lookout is the single multicall binary of k8s-lookout (DESIGN.md §4.1): deterministic, token-dense reads of Kubernetes/GKE clusters for agent-driven troubleshooting, plus the resident per-cluster sentinel, `lookout watch`.
internal
watch
Command k8s-event-watcher is the v2.6 semi-autonomous-triage sidecar.
Command k8s-event-watcher is the v2.6 semi-autonomous-triage sidecar.
pkg
engine
Package engine implements the watch-path signal pipeline: the Event.Reason / namespace filter and the rolling-window dedup cache that decide which observed Kubernetes events become incidents.
Package engine implements the watch-path signal pipeline: the Event.Reason / namespace filter and the rolling-window dedup cache that decide which observed Kubernetes events become incidents.
inject
Package inject implements the thin HTTP client the watch sentinel uses to speak to a core-agent daemon, plus the frozen wire types it POSTs (see payload.go).
Package inject implements the thin HTTP client the watch sentinel uses to speak to a core-agent daemon, plus the frozen wire types it POSTs (see payload.go).
kube
Package kube provides Kubernetes client bootstrap shared by the lookout subcommands.
Package kube provides Kubernetes client bootstrap shared by the lookout subcommands.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL