debug-openshell-cluster
它能做什么
这项技能指导 AI 诊断无法启动、无法访问或无法创建沙盒的 OpenShell 网关。适合在 Docker、Podman、Kubernetes 或虚拟机上运行 OpenShell 的运维人员。
适用场景
- ✓你的 OpenShell 网关显示不健康或无法访问的时候。
- ✓你的 OpenShell 网关上沙盒无法启动的时候。
- ✓Helm、TLS 或身份验证问题阻碍 OpenShell 网关运行的时候。
技能链接
https://github.com/NVIDIA/OpenShell/blob/main/skills/debug-openshell-cluster/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 OpenShell 网关无法访问,新的沙盒也无法启动。请帮我找出原因。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先检查 CLI 正在使用哪个网关,然后查看该平台对应的工具,例如 Docker、Podman、kubectl 或虚拟机日志,以找出出错的部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Debug OpenShell Gateway Deployment
Diagnose a gateway and its selected compute platform. Do not assume OpenShell provisions Kubernetes or runs a k3s container. OpenShell targets a reachable gateway endpoint backed by Docker, Podman, Kubernetes, the experimental VM driver, or an operator-managed out-of-tree compute driver.
Use openshell first to identify the active endpoint. Then use the platform tools that match the gateway's compute driver: docker, podman, kubectl/helm, or VM driver logs.
Overview
The target deployment flow is:
- Operator starts or deploys the gateway with system packages, systemd, or Helm. The CLI does not start, stop, or destroy gateway services.
- Operator configures the compute driver.
- Operator provides the CLI and supervisor authentication material required by the deployment mode: edge or OIDC user auth, optional CLI mTLS, and gateway-minted sandbox JWTs.
- The CLI registers a reachable gateway endpoint with
openshell gateway add. - The gateway creates sandboxes through the selected compute driver.
The openshell-gateway composition crate explicitly installs its compiled
Docker, Podman, Kubernetes, and VM registrations at startup; openshell-server
does not link compute-driver crates. Custom gateway binaries may include a
subset of those registrations. With no configured driver, the gateway probes only
installed registrations in priority order (Kubernetes, Podman, then Docker);
VM has no probe and remains opt-in. Confirm the binary's registered drivers
when auto-detection reports that no suitable driver is available. If
configuration selects a driver that was not compiled in, the gateway treats
the name as an external driver and reports a missing socket_path unless an
endpoint is configured.
On Windows, custom binaries can include MXC independently. Registrations for Docker, Podman, Kubernetes, and VM are rejection stubs when included; they do not enable those runtimes on Windows.
See the compute driver reference for selective-build options and external-driver configuration.
For local evaluation only, TLS may be disabled and the gateway can be reached through http://127.0.0.1:<port>.
Prerequisites
- The
openshellCLI must be available for endpoint checks. - Know the active gateway name and endpoint, or be able to inspect local gateway metadata.
- Know the compute platform: Docker, Podman, Kubernetes, VM, or an out-of-tree driver.
- For Kubernetes:
kubectlmust target the cluster that hosts OpenShell and Helm version 3 or later must be available. - For Docker or Podman: the runtime socket must be reachable from the gateway host.
Use openshell --help and nested --help output as the authority for the installed CLI version. Use the published installation guide, compute-driver reference, gateway configuration reference, and Kubernetes setup guide as the authority for deployment and configuration behavior.
Workflow
Run diagnostics in order and stop once the root cause is clear.
Step 1: Check CLI Reachability
openshell gateway list --output json
openshell gateway info
openshell status
For a one-off endpoint check that bypasses stored gateway selection and metadata:
openshell --gateway-endpoint <url> status
Common findings:
No active gateway: register one withopenshell gateway add <endpoint>.gateway has no user authentication configured: configure OIDC, mTLS user or operator authentication, or gateway JWTs using the published gateway configuration reference. For trusted local development, explicitly set[openshell.gateway.auth] allow_unauthenticated_users = true; the gateway otherwise refuses to bind any ports.- Connection refused: gateway process is not running, service exposure is wrong, or a port-forward/proxy is not active.
- TLS/certificate errors: the endpoint scheme or trust chain is wrong, a CLI mTLS bundle does not match the gateway CA, a supervisor is missing the gateway CA, or TLS termination does not match the gateway listener. Workloads and supervisors should not contain a user TLS client certificate or private key.
- Fresh snap
常见问题
这项技能会安装或启动网关吗?
不会。它帮助查找已部署网关中的问题。CLI 本身不会启动或停止网关服务。
它涵盖哪些平台?
涵盖 Docker、Podman、Kubernetes、实验性的虚拟机驱动程序以及自定义计算驱动程序。
它能帮忙处理 TLS 或登录问题吗?
能。它把 TLS、身份验证和沙盒启动问题列在它诊断的问题之中。
详情
作者的原始描述
Debug why an OpenShell gateway deployment is unhealthy, unreachable, or unable to create sandboxes. Use for gateway health failures, Docker/Podman runtime issues, Helm failures, Kubernetes scheduling, TLS or auth, gateway interceptors, supervisor middleware startup or runtime failures, external compute-driver sockets, VM drivers, or sandbox startup. Trigger keywords - debug gateway, gateway failing, deployment failing, helm install failing, cluster health, gateway health, gateway not starting, health check failed, sandbox pending, docker driver, podman driver, kubernetes driver, external drive
repo: NVIDIA/OpenShell
热度
- GitHub 星标
- 21k
- 排名
- #10366
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
create-github-issue
21k帮你的智能体使用 gh 命令行工具和项目模板,为错误、功能请求或任务创建 GitHub 议题。
create-github-pr
21k让你的智能体在检查工作是否可以提交审查后,使用 gh 工具为你的分支开启 GitHub 拉取请求。
review-github-pr
21k教你的智能体阅读 GitHub 拉取请求,并用通俗的语言解释其中的修改、关键设计选择和值得注意的代码。
watch-github-actions
21k让你的智能体查看 GitHub Actions 运行情况,持续跟踪直到运行结束,并阅读任何失败作业的日志。