
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://raw.githubusercontent.com/kubeshop/testkube/main/assets/testkube-color-gray.png
Testkube kubepug Executor是一个通过Testkube在Kubernetes集群中直接运行的https://github.com/kubepug/kubepug%E6%89%A7%E8%A1%8C%E5%99%A8%E3%80%82%E5%85%B6%E4%B8%BB%E8%A6%81%E5%8A%9F%E8%83%BD%E6%98%AF%E7%A1%AE%E4%BF%9DKubernetes%E9%9B%86%E7%BE%A4%E4%BF%9D%E6%8C%81%E6%9C%80%E6%96%B0%E7%8A%B6%E6%80%81%E5%B9%B6%E4%BD%BF%E7%94%A8%E6%9C%80%E6%96%B0%E7%9A%84API%E3%80%82
该执行器随Testkube自动安装,无需手动构建或注册到本地环境。
准备测试清单文件
创建包含Kubernetes资源清单的YAML文件(例如test-manifest.yaml):
yamlapiVersion: v1 conditions: - message: '{"health":"true"}' status: "True" type: Healthy kind: ComponentStatus metadata: creationTimestamp: null name: etcd-1
创建测试
使用kubectl testkube命令创建测试:
bash$ kubectl testkube create test --file test-manifest.yaml --type kubepug/yaml --name kubepug-example-test-1 Test created testkube / kubepug-example-test-1 🥇
运行测试
运行创建的测试:
bash$ kubectl testkube run test kubepug-example-test-1 Type : kubepug/yaml Name : kubepug-example-test-1 Execution ID : 62b59ae1657713ea1b003a25 Execution name: completely-helped-fowl Test execution started Watch test execution until complete: $ kubectl testkube watch execution 62b59ae1657713ea1b003a25 Use following command to get test execution details: $ kubectl testkube get execution 62b59ae1657713ea1b003a25
查看测试结果
执行以下命令查看测试详情:
bash$ kubectl testkube get execution 62b59ae1657713ea1b003a25 ID: 62b59ae1657713ea1b003a25 Name: completely-helped-fowl Type: kubepug/yaml Duration: 00:00:05 Status test execution failed: ⨯ {"DeprecatedAPIs":[{"Description":"ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+","Group":"","Kind":"ComponentStatus","Version":"v1","Name":"","Deprecated":true,"Items":[{"Scope":"OBJECT","ObjectName":"etcd-1","Namespace":"","location":"/tmp/test-content4075001618"}]}],"DeletedAPIs":null}
使用与上述相同的清单文件(test-manifest.yaml),通过--args指定Kubernetes版本:
bash$ kubectl testkube run test kubepug-example-test-1 --args '--k8s-version=v1.18.0' Type : kubepug/yaml Name : kubepug-example-test-1 Execution ID : 62b59d52657713ea1b003a2d Execution name: notably-healthy-cricket Test execution started Watch test execution until complete: $ kubectl testkube watch execution 62b59d52657713ea1b003a2d Use following command to get test execution details: $ kubectl testkube get execution 62b59d52657713ea1b003a2d
查看测试结果:
bash$ kubectl testkube get execution 62b59d52657713ea1b003a2d ID: 62b59d52657713ea1b003a2d Name: sincerely-real-marten Type: kubepug/yaml Duration: 00:00:05 Args: --k8s-version=v1.18.0 {"DeprecatedAPIs":null,"DeletedAPIs":null} Status Test execution completed with success 🥇
kubectl api-resources --verbs=list -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found --all-namespaces -o json > all-namespaces-pug.json生成的文件时请通过https://github.com/kubeshop/testkube%E6%8A%A5%E5%91%8A%E4%BB%BB%E4%BD%95https://github.com/kubeshop/testkube/issues%E6%88%96%E5%8F%82%E4%B8%8Ehttps://github.com/kubeshop/testkube/discussions%E3%80%82
更多信息请访问https://github.com/kubeshop/testkube
!Release !Go version
!Docker builds !Code build !Release date
!*** !Slack
文档 | Slack
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




来自真实用户的反馈,见证轩辕镜像的优质服务