From rancher-assistant
This skill should be used when the user asks to "rollout history", "deployment changes", "watch deployment", "diff", "what changed", "compare deployments", "monitor rollout", "deployment status", "cross cluster diff", "部署历史", "发布历史", "变更", "部署对比", "监控部署", "跨集群对比", or discusses deployment tracking, change management, and release monitoring (部署追踪、变更管理和发布监控).
How this skill is triggered — by the user, by Claude, or both
Slash command
/rancher-assistant:deployment-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
追踪 Deployment 变更、查看发布历史、对比资源差异、监控滚动更新。
追踪 Deployment 变更、查看发布历史、对比资源差异、监控滚动更新。
rancher-deployment-tracker用于: 所有部署追踪和变更管理任务
能力:
传递参数:
{
"cluster": "c-abc123",
"namespace": "production",
"name": "api-server",
"kind": "deployment",
"action": "history" | "diff" | "watch" | "status" | "cross_cluster_diff"
}
解析用户请求,确定:
historydiff 或 cross_cluster_diffwatchstatusTask({
subagent_type: "general-purpose",
description: "追踪 Deployment " + name + " 的变更",
prompt: `你是 rancher-deployment-tracker。${action_description}`
})
用户: "api-server 的发布历史"
→ 启动 rancher-deployment-tracker
action: "history"
→ 展示修订版本列表和变更原因
用户: "对比 staging 和 production 的 api-server Deployment"
→ 启动 rancher-deployment-tracker
action: "cross_cluster_diff"
使用 kubernetes_diff:
kind: "deployment"
left: { cluster: "staging-id", namespace: "app", name: "api-server" }
right: { cluster: "prod-id", namespace: "app", name: "api-server" }
ignoreMeta: true, ignoreStatus: true
→ 展示差异报告(镜像版本、副本数、环境变量等)
用户: "监控 api-server 的滚动更新"
→ 启动 rancher-deployment-tracker
action: "watch"
kubernetes_watch:kind: "deployment", intervalSeconds: 5, iterations: 12
→ 展示变更过程
用户: "分析 api-server Deployment 的状况"
→ 启动 rancher-deployment-tracker
action: "status"
→ 引擎内部并行获取:
- 发布历史
- 当前描述和事件
- Pod 状态
→ 展示综合状态报告
用户: "对比 api-server 和 web-server 的部署配置"
→ 并行启动:
Agent 1: rancher-deployment-tracker(api-server 的详情)
Agent 2: rancher-deployment-tracker(web-server 的详情)
→ 对比展示
用户: "api-server 在三个集群中的差异"
→ 使用 kubernetes_diff 进行两两对比:
对比 1: staging vs production
对比 2: production vs dr
→ 汇总差异报告
## 发布历史: api-server (production/c-abc123)
| 修订版本 | 变更原因 | 时间 |
|----------|----------|------|
| 5 (当前) | Update image to v2.1.0 | 2h ago |
| 4 | Scale to 5 replicas | 1d ago |
| 3 | Update env vars | 3d ago |
| 2 | Update image to v2.0.0 | 1w ago |
| 1 | Initial deployment | 2w ago |
## 资源对比: api-server
### staging (c-staging) vs production (c-prod)
关键差异:
- 镜像: staging=v2.2.0-rc1, production=v2.1.0
- 副本数: staging=2, production=5
- 内存限制: staging=256Mi, production=512Mi
详细 diff:
--- staging/api-server
+++ production/api-server
@@ spec.replicas @@
- replicas: 2
+ replicas: 5
@@ spec.template.spec.containers[0].image @@
- image: api-server:v2.2.0-rc1
+ image: api-server:v2.1.0
## 监控结果: api-server
监控时长: 60 秒 (5s x 12 次)
检测到 3 次变更:
### 变更 1 (10s)
replicas: 5 → 4 (缩容中)
### 变更 2 (25s)
replicas: 4 → 3 (继续缩容)
### 变更 3 (40s)
replicas: 3 → 3, readyReplicas: 2 → 3 (就绪)
kubernetes_rollout_history 仅支持 Deployment 类型intervalSeconds × iterationsignoreMeta: true 和 ignoreStatus: true 减少无关差异npx claudepluginhub futuretea/rancher-assistant --plugin rancher-assistantManages Kubernetes cluster resources via kubectl across multiple clusters. Views pod/deployment statuses, logs/events; troubleshoots with exec/port-forward; modifies via scale/rollout.
Provides zero-downtime deployment strategies including blue-green, canary releases, rolling updates, rollbacks, feature flags, and health checks. Useful for release management and minimizing risks.
Provides deployment plans for blue-green, canary releases, progressive rollouts, automated rollback, feature flag coordination, and zero-downtime migrations. For high-risk changes and rollouts.