docker/tcc-wsproxyTestcontainers Cloud Operator 镜像专为 OpenShift 容器平台设计,是管理 Testcontainers Cloud 资源的核心组件。该 Operator 旨在自动化 Testcontainers Cloud 在 OpenShift 环境中的部署、配置与运维流程,减少手动操作,确保测试环境的一致性和稳定性,助力开发与测试团队高效构建容器化测试环境。
推荐通过 OpenShift Operator Lifecycle Manager (OLM) 部署,步骤如下:
testcontainers-system)。通过创建 TestcontainersCloud 自定义资源(CR)配置实例:
yamlapiVersion: testcontainers.cloud/v1alpha1 kind: TestcontainersCloud metadata: name: testcontainers-cloud-instance namespace: testcontainers-system spec: apiKey: "<your-testcontainers-cloud-api-key>" # Testcontainers Cloud API 密钥 resourceLimits: cpu: "1" memory: "1Gi" logLevel: "info" # 日志级别:debug/info/warn/error proxy: enabled: true port: 8080
应用配置:
bashoc apply -f testcontainers-cloud-cr.yaml -n testcontainers-system
Operator 支持通过环境变量调整运行参数,常见配置如下:
| 环境变量名 | 描述 | 默认值 |
|---|---|---|
WATCH_NAMESPACE | 监控的命名空间,为空则监控所有 | 部署 Operator 的命名空间 |
TESTCONTAINERS_CLOUD_API_URL | Testcontainers Cloud API 地址 | [***] |
OPERATOR_NAME | Operator 名称标识 | testcontainers-cloud-operator |
RECONCILIATION_INTERVAL | 资源调和周期(秒) | 30 |
检查 Operator Pod 运行状态:
bashoc get pods -n testcontainers-system | grep testcontainers-cloud-operator
检查自定义资源状态:
bashoc get testcontainersclouds.testcontainers.cloud -n testcontainers-system

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务