kubectl wait sometimes timed out unexpectedly
问题 I just add kubectl wait --for=condition=ready pod -l app=appname --timeout=30s in the last step of BitBucket Pipeline to report any deployment failure if the new pod somehow producing error. I realize that the wait doesn't really consistent. Sometimes it gets timed out even if new pod from new image doesn't producing any error, pod turn to ready state. Try to always change deployment.yaml or push newer image everytime to test this, the result is inconsistent. BTW, I believe using kubectl