
!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
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务