简体   繁体   中英

Kubernetes : deployment failed to rollout even after pod ready status is true

I'm trying to deploy one of my application using circleCI workflows in following steps:

  • setup environment
  • build
  • Unit test
  • Integration test
  • Deploy

whenever my integration test takes around 7-8 mins, I'm getting timeout error on circleCI console.

deployment.extensions/demo-app created
Waiting for deployment "demo-app" rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for deployment "demo-app" rollout to finish: 0 of 1 updated replicas are available...
Too long with no output (exceeded 10m0s)

Seems like there is some problem in rollout status command or it is not able to detect that my test has been finished and pod is in ready state.

I've checked the output of kubectl describe pod command as well and it is showing me the pod status is ready.

I've already tried increasing no_output_timeout in circleCI config but didn't work.

I've also tried changing readiness probe parameters' value according to time taken by integration test but still it finished with timeout. Current values for readiness probe:

readinessProbe:
    exec:
        command:
            - cat
            - /test/result
    initialDelaySeconds: 10
    periodSeconds: 10
    failureThreshold: 60

When I re-run the circleCI build after reducing number of integration tests, it is working fine.

Please let me know the probable cause for this as I'm totally novice with deployment and kubernetes things.

I'm using Kubernetes v1.5.2

您可以尝试为部署定义分配更多资源,例如,在某些情况下,更多CPU或RAM可以提高工作负载启动的速度并做好准备但是在正常操作期间工作负载可能不需要它但是在例如,您需要检查您的加载过程。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM