Helm Test Failure: Timed out Waiting for the Condition

We have a simple release test for a Redis chart. After running helm test myReleaseName --tls --cleanup, we got

RUNNING: myReleaseName-redis
ERROR: timed out waiting for the condition

There are several issues in Github repository at but I did not find a solution to it.

What's going on here?

3 Answers

This first looks puzzling and shows little information because --cleanup will kill the pods after running. One can remove it to get more information. I, thus, reran the test with

helm test myReleaseName --tls --debug

Then use kubectl get pods to examine the pod used for testing. (It could be of other names.)

NAME                                                 READY     STATUS             RESTARTS   AG
myReleaseName-redis                                            0/1       ImagePullBackOff   0          12h

From here, it is more clear now that there is something wrong with images, and it turned out that the link used to pull the image is not correct. (Use kubectl describe pod <pod-name> and then you can find the link you used to pull the image.)

Fix the link, and it worked.

For me, helm couldn't pull the image as it was in private repo

kubectl get events helped me get the logs.

9m38s       Warning   Failed              pod/airflow-scheduler-bbd8696bf-5mfg7      Failed to pull image 

After authenticating helm install command worked.

REF:

if helm test <ReleaseName> --debug shows installation completed successfully but deployment failed, may be because of deployment takes more than 300 sec.

Helm will wait as long as what is set with --timeout . By default, the timeout is set to 5min, sometimes for many reason helm install may take extra time to deploy, so increase the timeout value and validate the installation.

helm install <ReleaseName> --debug --wait --timeout 30m

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest