最新资讯
dev.to 如何在专用 GPU 服务器上用 OpenAI 兼容 API 部署 LLM dev.to 审计 153 份 Claude Code 与 Codex 会话记录:User-Agent 与 URL 中的邮箱泄露 dev.to 你的 Agent Harness 应具备的 17 项能力 dev.to 离线 AI 记忆中 0.8 余弦阈值为何失效 dev.to Kimi K3.1 Pro 开放权重:自托管 2.8T 模型前的开发者清单 dev.to 如何通过工具调用引导模型以提升 Harness 质量 dev.to AI Agent 审计轨迹不等于对话记录 dev.to 精简 MCP server 工具数量:更少工具、更小影响面,双重收益 dev.to 为什么 git checkout 无法撤销 AI 编码 agent 的改动? wechat AI短剧门槛降降降!实测即梦短剧工作室:剧本分镜预演一条龙,伙伴计划长期护航 dev.to 让模型改写文档前,先量化事实保真度 dev.to 回放 153 个 Claude Code 与 Codex 会话,审计 Agent 的生产影响范围
多元动态
登录 注册
智能体 dev.to · @mohsen

我故意录下了我的 Kubernetes AI Agent 失败的过程

原文 我的收藏

作者展示了一段通常会被产品演示剪掉的 30 秒:一个 deployment 处于 crash-loop,agent 已诊断出根因,在获得批准后执行 restart,命令成功但问题依旧;追问后 agent 重新读取 pod 与事件,确认根因仍是 DATABASE_URL 未设置导致容器退出。作者认为,事故响应工具最严重的失败不是帮不上忙,而是输出看似有效却误导人的结论,并以此说明 agent 应主动指出无效操作。

AI推荐理由 作者刻意展示 Kubernetes AI agent 的失败场景:agent 诊断出 DATABASE_URL 缺失,却执行了无效的 restart,并主动指出重启无法解决问题。该案例具体、可复现,说明事故响应类 agent 的关键在于不产生误导性结论,对构建运维 agent 的开发者有实际启发。

64

正文

Most demos of AI-for-infrastructure tools show a clean run. I think that is exactly backwards, and I want to explain why by walking through the thirty seconds of my own demo that a normal product video would have cut. The scene A deployment is crash-looping. The agent has already diagnosed it. I ask it to restart the deployment. It stops and asks for approval. I approve. The restart runs, and the command succeeds. Then I ask the follow-up question: did the restart change anything? No. The pods fail with the same error. A restart was never going to supply a missing environment variable. The agent re-reads the pods, re-reads the events, and names the same root cause it found at the very beginning: DATABASE_URL is not set, so the container exits 1. The restart was a reasonable thing to try and the wrong thing to fix it, and the system is the one saying so. Why that scene is the product The worst failure for an incident-response tool is not being unhelpful. It is emitting something that looks like a real diagnosis and is not. At 3am a confident wrong answer costs more than no answer, because it sends a tired human down a wrong path with false authority. So the design follows from that. The approval gate is at the tool boundary, not in the prompt. A guardrail written into a system prompt is a suggestion, and models can be argued out of suggestions. Instead every mutating operation passes through one chokepoint that returns exactly three answers: do it, ask a human, or refuse. The model does not get a vote, so there is nothing to talk around. Detectors are compiled predicates, not model calls. They are always on, they run on every observation, and they cost zero tokens. The LLM is only invoked once a detector actually fires. Watching your cluster is free; thinking about it is the expensive part, so it happens last. Every decision is appended to a hash-chained log. A run can be replayed afterwards instead of remembered. If you are going to let software touch production, "what exactly did it do, and why" has to be answerable after the fact. Roles are real. readonly, operator, admin and superadmin, enforced per key. What it reads kubectl for cluster state, Prometheus for metrics via PromQL, and Loki for logs via LogQL. It answers in plain English and quotes the evidence it actually read, so you can check it rather than trust it. The video Eight minutes, every terminal scene a verbatim recording against a live cluster. Nothing typed by hand, nothing reconstructed. The approval-gate segment starts at 2:27. Try it In your browser, nothing to install: https://kubeintellect.com/demo pip install kubeintellect - AGPL-3.0, self-hosted, bring your own LLM provider Code: https://github.com/MSKazemi/kubeintellect The v1 architecture is written up in the Journal of Grid Computing (https://doi.org/10.1007/s10723-026-09837-6), with a preprint at https://arxiv.org/abs/2509.02449. The repo is several generations past that now. If you run Kubernetes in production, the thing I most want to hear is which failure you would throw at it that I have not handled.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容