Terraform's `kubectl wait --for=condition=ready pods ...` hangs
See original GitHub issueDescribe the bug
- According to this Google-internal Doc, Online Boutique’s default Terraform (in /main/terraform) sometimes hangs.
- More specifically, it’s the “kubectl wait” condition inside main.tf that hangs.
To Reproduce
- I have not reproduced the issue myself yet.
- But we can try to reproduce this issue by running the
terraform apply
(as seen in /terraform/README.md) multiple times.
Logs
- N/A
Screenshots
- N/A
Environment
- TBD
Additional context
- tpryan@ might be able to provide additional context.
Exposure
- This would affect anyone using Terraform to deploy Online Boutique.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Wait Conditions in the Kubernetes Provider for HashiCorp ...
This new attribute instructs the Terraform provider to wait on a condition based on any attribute of a Kubernetes object. For example, you...
Read more >terraform helm release timeout while waiting for condition
You can use the kubernetes in Terraform. ... but the pods are stuck on pending for some reason (resources, taints, etc') or crashing....
Read more >Troubleshooting | Google Kubernetes Engine (GKE)
If the Maximum pods per node limit is reached by all nodes in the cluster, the Pods will be stuck in Unschedulable state....
Read more >Check your Helm deployments! - Polar Squad
Here's how to safely deploy Helm charts containing Kubernetes ... AGE demo 0/1 1 0 1s ==> v1/Pod(related) NAME READY STATUS RESTARTS AGE ......
Read more >Starting containers in order on Kubernetes with InitContainers
In Kubernetes, deployments have a restartPolicy set to Always by default, which means that the kubelet agent of the node attempts to restart...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s intermittent. And I can’t tell what variables are changing. I have a build job that runs it every night. So in theory I will get logs for you to sift through eventually. 😃
@NimJay i suggest to close this item. there is no clear reproduction path. as an option, we can add a timeout argument to the relevant Terraform configurations to avoid tests to hang out forever.