dsh-k8s
在终端中运行以下命令:
dsh plugin install MrYangyt/dsh-k8s
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中执行 dsh plugin install MrYangyt/dsh-k8s 即可安装该插件,完整源码地址为 https://github.com/MrYangyt/dsh-k8s 。
插件介绍
Managing Kubernetes clusters usually means stepping away from your current workflow and juggling kubectl commands in a terminal. dsh-k8s brings a Lens-style cluster management interface straight into the DSH conversation view, so you can flip between Chat, Trajectory, and Kubernetes tabs without ever leaving the session you are already working in.
The plugin covers the full breadth of day-to-day cluster operations: add, switch, and remove multiple kubeconfig clusters from a dropdown; browse more than a dozen resource types including Pods, Deployments, StatefulSets, Jobs, Services, Ingresses, ConfigMaps, Secrets, Nodes, and Namespaces with per-namespace filtering; inspect any resource YAML and tail logs in a dedicated detail panel; drop into an interactive Pod shell built on xterm.js and node-pty for in-container debugging; and perform write operations such as restarting workloads, scaling replica counts, and editing plus applying YAML with a second-confirmation guard. Every kubectl call runs against your local binary with no remote service in the middle, and each cluster config is stored under ~/.kube/configs/ so the plugin never overwrites your existing ~/.kube/config.
If you already live inside DSH for daily development and frequently need a quick glance at cluster state, a service restart, a scale-up, or a dive into a Pod to chase down a flaky container, dsh-k8s keeps those operational steps in the same session and removes the constant context-switching cost.
截图预览
使用场景
- 在 DSH 会话中快速浏览和排查 K8s 集群资源
- 通过 Pod Shell 进入容器内部进行交互调试
- 对 Deployment 执行重启、扩缩容或 Apply YAML 变更
适合人员
- 日常在 DSH 中工作且频繁需要查看集群状态的开发者
- 需要多集群切换且希望减少终端切换成本的 SRE 或 DevOps
- 希望将 K8s 运维操作集成到现有工作流中的平台工程师