确保是这样的: if __name__ == '__main__': app.run(host='0.0.0.0', port=80)
云托管部署失败,这是什么原因?-----------服务test-service部署test-service-001----------- 2021-07-04 17:48:23 create_version_check_vpc : succ, 2021-07-04 17:48:23 create_version_describe_cluster : succ, cluster is nil 2021-07-04 17:48:28 create_version_create_eks : succ, 2021-07-04 17:48:31 create_version_check_eks : succ, 2021-07-04 17:50:21 create_version_adjust_pod_quota : succ, 2021-07-04 17:50:22 create_version_free_quota : succ, 2021-07-04 17:50:24 create_eks_virtual_service : succ, 2021-07-04 17:50:24 check_eks_virtual_service : process, , Successfully assigned default/test-service-001-559d76db9c-5dn9x to eklet-subnet-gn6a05x1; Starting pod sandbox eks-f8lrir4l; Sync endpoints; MountVolume.SetUp failed for volume "tcb-wx-access-token" : secret "tcb-wx-access-token" not found; Unable to attach or mount volumes: unmounted volumes=[tcb-wx-access-token], unattached volumes=[tcb-wx-access-token default-token-wf7qm]: timed out waiting for the condition; Pulling image "ccr.ccs.tencentyun.com/tcb-1060060644-thpj/cloudrun-dev-5gi8mktddcc457e5_test-service:test-service-20210704174739-0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-1060060644-thpj/cloudrun-dev-5gi8mktddcc457e5_test-service:test-service-20210704174739-0" in 7.038474919s; Created container test-service-001; Started container test-service-001; Readiness probe failed: dial tcp 10.0.96.11:7001: connect: connection refused;
2023-05-22确保是这样的: if __name__ == '__main__': app.run(host='0.0.0.0', port=80)
为什么云托管部署失败?照着官方的例子开发云托管,结果一直提示“部署失败”,日志: Readiness probe failed: dial tcp 10.0.64.13:80: connect: connection refused; Liveness probe failed: dial tcp 10.0.64.13:80: connect: connection refused; 处理建议: 当前服务配置端口为 80,检查和代码中端口是否一致 提交工单,并在 问题描述 中附上以下信息:环境id:repo-7gfptdnp9e6fad5d;服务名称:test1;版本:test1-001;状态:端口异常
2023-05-22