本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com
Testcontainers Cloud Operator for OpenShift是专为OpenShift平台设计的操作器(Operator),旨在简化Testcontainers Cloud在OpenShift集群中的部署、配置与生命周期管理。通过OpenShift原生的自定义资源(Custom Resource)和控制器(Controller)机制,该操作器可自动化Testcontainers Cloud组件的部署、升级及故障恢复,帮助用户在OpenShift环境中高效集成Testcontainers Cloud提供的容器化测试服务。
添加Helm仓库:
helm repo add testcontainers-cloud [***] helm repo update
安装Operator:
helm install testcontainers-cloud-operator testcontainers-cloud/testcontainers-cloud-operator \ --namespace testcontainers-cloud --create-namespace \ --set platform=openshift \ --set cloud.apiKey=YOUR_TESTCONTAINERS_CLOUD_API_KEY
创建Testcontainers Cloud实例:
通过自定义资源配置实例参数,示例testcontainers-cloud-cr.yaml:
apiVersion: cloud.testcontainers.com/v1alpha1 kind: TestcontainersCloud metadata: name: my-tc-cloud-instance namespace: testcontainers-cloud spec: replicas: 2 resources: limits: cpu: "1" memory: "1Gi" requests: cpu: "500m" memory: "512Mi" cloud: region: "us-west-2" logLevel: "info"
应用配置:
oc apply -f testcontainers-cloud-cr.yaml -n testcontainers-cloud
检查Operator Pod状态:
oc get pods -n testcontainers-cloud -l app.kubernetes.io/name=testcontainers-cloud-operator
检查自定义资源状态:
oc get testcontainersclouds.cloud.testcontainers.com -n testcontainers-cloud oc describe testcontainersclouds.cloud.testcontainers.com my-tc-cloud-instance -n testcontainers-cloud
部署时可通过环境变量调整核心配置:
TESTCONTAINERS_CLOUD_API_KEY:Testcontainers Cloud API密钥(必填)TESTCONTAINERS_CLOUD_REGION:服务区域(默认:us-west-2)LOG_LEVEL:日志级别(默认:info,可选:debug/warn/error)| 参数路径 | 说明 | 示例值 |
|---|---|---|
spec.replicas | 实例副本数 | 2 |
spec.resources.limits.cpu | CPU资源上限 | "1" |
spec.resources.requests.memory | 内存资源请求 | "512Mi" |
spec.cloud.region | Testcontainers Cloud区域 | "eu-central-1" |
卸载Helm release:
helm uninstall testcontainers-cloud-operator -n testcontainers-cloud
删除命名空间及残留资源:
oc delete namespace testcontainers-cloud oc delete crd testcontainersclouds.cloud.testcontainers.com

免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429