Skip to content

bug(kagent): Default Kagent bundled agents crash loop due to missing secrets #89

Closed as not planned

Description

@GunaPalanivel

Problem

When installing Kagent without the --set agents.*.enabled=false flags documented in kagent-feast-mcp/README.md (lines 138-149), the default bundled agents (argo-rollouts-conversion-agent, cilium-debug-agent, k8s-agent, etc.) crash loop with CreateContainerConfigError because they expect a kagent-openai secret that doesn't exist in this project's setup.

These agents collectively consume ~2.3GB of RAM before crashing, which on constrained environments (e.g., 8GB WSL2 hosts) prevents the actual kubeflow-docs-agent pod from being scheduled.

Current Mitigation

The README Step 6 already includes the correct --set flags to disable these agents. However:

  1. If a contributor installs kagent from the upstream kagent docs (without these flags), they hit this crash with no explanation.
  2. There's no troubleshooting entry for CreateContainerConfigError or kagent-openai secret in the README.

Proposed Fix

Add a Troubleshooting entry to kagent-feast-mcp/README.md under the existing Troubleshooting section:

### Default agents crash with CreateContainerConfigError

If you installed kagent without the `--set agents.*.enabled=false` flags from Step 6,
the bundled agents will crash because they require a `kagent-openai` secret.
Either reinstall with the flags above, or delete the extra agents:

kubectl delete agent argo-rollouts-conversion-agent cilium-debug-agent \
  cilium-manager-agent cilium-policy-agent helm-agent istio-agent \
  k8s-agent kgateway-agent observability-agent promql-agent -n <YOUR_NAMESPACE>

File

  • kagent-feast-mcp/README.md — Troubleshooting section

Context

Discovered during local Kagent PoC validation — #59 (comment)

Note: @SanthoshToorpu noted that kagent install should remove these.

Confirmed that the --set flags do work — this issue is about documenting the fallback for when those flags are missed.

Activity

  1. asfandyar-prog commented on Mar 2, 2026

    @asfandyar-prog

    Hi — I’d be happy to help improve the documentation around this.

    I can add a clear troubleshooting section in kagent-feast-mcp/README.md explaining:

    The CreateContainerConfigError symptom

    Why the default bundled agents expect the kagent-openai secret

    How to reinstall Kagent with the correct --set agents.*.enabled=false flags

    How to clean up already-created agents if the flags were missed

    I’ll structure it under the existing Troubleshooting section to keep onboarding smoother for new contributors, especially those working in constrained local environments.

    Please let me know if this aligns with expectations, and I can open a PR.

  2. chasecadet commented on Nov 20, 2026

    @chasecadet
    Contributor

    Thank you for reporting this!

    We are closing pre-restructure issues targeting the legacy server/, server-https/, manifests/, kagent-feast-mcp/, or in-process SentenceTransformer prototype code. In #207, #210, #233, #240, and #249, kubeflow/docs-agent migrated to dedicated TEI (text-embeddings-inference), FastMCP (docs-agent-mcp/mcp-server/), shared modular KFP pipelines (docs-agent-mcp/pipelines/), and Helm charts (docs-agent-mcp/charts/).

    If you still observe an equivalent issue on the current main stack, please feel free to open a new issue using the current issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions