Fairwinds Pluto
$ pluto 官方出品 低风险pluto(FairwindsOps/pluto)可在静态 IaC 清单(detect-files)、Helm 发布记录(detect-helm)与在线资源(detect-api-resources)中定位已弃用或已移除的 apiVersion,支持 -o json 与 --target-versions。
brew install pluto pluto 直接扫描本地仓库、helm template 管道与 Helm Secret 并输出 -o json 及精准退出码,无需 MCP。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
支持 -o json、-o yaml、-o csv、标准输入管道(detect -)以及区分“弃用”与“移除”的精确退出码。
- Supports
-o jsonacrossdetect-files,detect-helm, anddetect
100% 只读检测工具,无本地或远程写入副作用,从不修改清单或集群状态。
- Purely read-only deprecation detector
跨 macOS、Linux、Windows 的单文件静态 Go 二进制,可通过 Homebrew 或 GitHub Releases 安装。
- Cross-platform binary via
brew install pluto
在集群升级前精准排查静态清单与 Helm v3 Secret 中失效的 apiVersion,降低升级故障风险。
- Includes replacement API guidance in JSON output
由 Fairwinds 官方(FairwindsOps/pluto)基于 Apache-2.0 协议维护,持续跟进 Kubernetes API 弃用周期。
- Official
FairwindsOps/plutorepository
pluto.docs.fairwinds.com 详尽说明了退出码含义、输出结构与自定义版本映射文件。
- Official docs at pluto.docs.fairwinds.com
安全边界、鉴权与放权指南
detect-files 与标准输入 detect 无需任何凭证;仅 detect-helm 与 detect-api-resources 会读取 ~/.kube/config(--kubeconfig)。
CLI 基于 Apache-2.0 免费开源,严格只读运行。
# Pluto Agent Rules - Always pass `--target-versions k8s=v1.<target>.0` and `-o json` when planning cluster upgrades. - Use `pluto detect-files -d <path>` for offline IaC checks before `detect-helm`. - Check `pluto` exit codes (2 = deprecated found, 3 = removed found) in automated scripts.
Agent 高频安全命令配方
只读查询(安全推荐)
pluto detect-files -d ./k8s --target-versions k8s=v1.31.0 -o json
对照 Kubernetes v1.31.0 扫描静态清单并以 JSON 输出已弃用/已移除的 API。
pluto detect-helm -o json --ignore-deprecations
检查集群已部署 Helm 发布清单,仅以 JSON 报告已移除的 API。
核心优势
- + 严格只读,
-o json输出直接包含replacement-api替换建议。 - + 通过不同退出码精准区分已弃用警告与已移除阻塞项。
- + 统一支持本地文件、
helm template管道及集群内 Helm v3 Release Secret 检查。
注意事项与踩坑点
- ! 内置版本之外的第三方 CRD 需通过
-f additional-versions.yaml补充定义。 - ! 检测到弃用或移除时返回退出码 2/3,在开启
set -e的脚本中需妥善处理。