Repository navigation
Closed
Copy link
Description
Problem
The Kagenti documentation does not have a unified, current page that explains:
- Sidecar injection modes — what containers a user should expect to see in an agent pod, and which Kagenti mode produces which container set.
- The label model that controls injection —
kagenti.io/type,kagenti.io/inject,kagenti.io/spire, and the per-sidecar opt-outs (kagenti.io/envoy-proxy-inject,kagenti.io/spiffe-helper-inject,kagenti.io/client-registration-inject). - How to switch modes — and what the resulting container layout will be.
Today this information is partial and scattered:
docs/authbridge/deployment-guide.md— coversproxy-sidecar/envoy-sidecar/waypointmodes but uses the olderkagenti.io/authbridge-modeannotation and does not mention the SPIRE opt-out label or per-sidecar opt-outs.docs/authbridge/roadmap.md,docs/components.md,docs/design-proposals/consolidated-compositional-agent-platform-design.md— fragments of the model, design-doc tone, not user-facing.charts/kagenti/values.yaml— image tags only.
Why this matters
Users following the weather-agent demo (kagenti-extensions PR #439 review surfaced this) see 3/3 Running with containers agent envoy-proxy spiffe-helper — the demo doc currently claims 2/2 with agent envoy-proxy. There is no canonical page they can go to and figure out what's controlling that, or how to switch.
What we need
A single user-facing page (refresh of docs/authbridge/deployment-guide.md, or a sibling) that covers:
- A "verify which mode you're in" command (
kubectl get pod ... -o jsonpath='{.items[0].spec.containers[*].name}'). - A table mapping mode + label combination → expected container list.
- The current label vocabulary (
kagenti.io/inject,kagenti.io/spire, per-sidecar opt-out labels) with examples. - A short pointer to cluster-admin feature gates (
globalEnabled,injectTools, per-sidecar gates) for completeness, with a link to the webhook source of truth. - A concrete "how to switch modes" section reflecting the current AgentRuntime CR + ConfigMap precedence chain.
Out of scope (for the doc)
- Designing new modes.
- Deprecating
kagenti.io/authbridge-mode(still honored — the doc should just reflect that).
Related
- kagenti-extensions PR epic: Namespace-Based Token Usage Quotas for AI Agents #439 — fixed a stale
team1namespace reference; reviewer + my own verification surfaced that the container count shown inauthbridge/demos/weather-agent/demo-ui.mdis also stale (says 2/2, real install today shows 3/3 with SPIRE on). - Source of truth for the label model:
kagenti-webhook/internal/webhook/injector/{pod_mutator.go,constants.go}inkagenti/kagenti-extensions.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Type
Projects
- StatusShow more project fieldsDone
Activity
📖 Add sidecar injection reference page for AuthBridge
📖 Add sidecar injection reference page for AuthBridge
📖 Add sidecar injection reference page for AuthBridge