deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
一个 Lens 风格的 Kubernetes 集群管理插件,用于 DeepSeek Harness (DSH)。在 DSH 会话视图中直接管理你的 K8s 集群。
kubectl 和 kubeconfigdsh plugin --profile web add github:MrYangyt/dsh-k8s
锁定到某个 commit(推荐,避免意外升级):
dsh plugin --profile web add "github:MrYangyt/dsh-k8s#<commit-hash>"
git clone https://github.com/MrYangyt/dsh-k8s.git
cd dsh-k8s-manager
npm install
npm run build
dsh plugin --profile web add /path/to/dsh-k8s
安装完成后,重启 DSH web 进程生效:
dsh web
prod、staging)~/.kube/configs/<name>.yaml,并自动把所有配置合并到 ~/.kube/configkubectl exec -it 驱动的交互式 shell提示:交互式 shell 依赖
node-pty。如果你的平台没有预编译二进制,插件会自动降级到非 tty 模式(kubectl exec -i)。在大多数主流平台上可以开箱即用。
~/.kube/config,而是把每个集群配置保存到 ~/.kube/configs/ 下,再合并生成主配置kubectlnpm install
npm run build
构建产物:
lib/index.js —— Host 插件(ESM)client/client.js —— Client 插件(ModuleLoader bundle,内含 xterm.js)npm run watch
cd /path/to/dsh-k8s-manager
pnpm add file:/path/to/dsh-k8s-manager --dir ~/.dsh/profiles/web
然后重启 dsh web。
dsh-k8s-manager/
├── client/
│ └── client.js # 浏览器端打包产物
├── lib/
│ └── index.js # Host 插件产物(ESM)
├── scripts/
│ └── build-client.mjs # client bundle 后处理脚本
├── src/
│ ├── index.ts # Host 插件源码
│ └── client/
│ └── index.tsx # Client 插件源码
├── cordis.patch.yml # DSH bundle patch
├── package.json
├── tsconfig.json # Host TS 配置
├── tsconfig.client.json # Client TS 配置
├── tsdown.config.ts # 打包配置
├── LICENSE
├── README.md
└── README.en.md
/dsh-k8s-manager/* HTTP 路由和 /dsh-k8s-manager/ws/shell WebSocket 路由conversation.view slot 中渲染 Lens 风格界面~/.kube/configs/*.yaml,插件通过 kubectl config view --flatten 合并到 ~/.kube/configKUBECONFIG=~/.kube/configs/<name>.yaml 实现无状态多集群切换请先安装 kubectl 并确保它在 PATH 中。
点击 Add Config 并粘贴有效的 kubeconfig YAML。
确保 node-pty 安装成功。Linux 可能需要 make g++ python3,macOS 需要 Xcode Command Line Tools,Windows 需要 Visual Studio Build Tools。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。