I’m encountering an issue where my Helm upgrade command runs successfully when executed manually, but it fails with a timeout when run in an Azure DevOps pipeline. The error message is:
UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the
condition.
This is not a first time execution it ran previously perfectly fine.
Here is the Helm command I’m using
helm upgrade prometheus prometheus-community/kube-prometheus-stack --install --namespace monitoring --create-namespace --timeout 10m --wait --set prometheus.prometheusSpec.nodeSelector.agentpool=default --set-string prometheus.'service.annotations.service.beta.kubernetes.io/azure-load-balancer-internal=true' --set prometheus.service.type=LoadBalancer --set prometheus.service.loadBalancerIP=10.${TF_VAR_SECONDOCTET}.31.253 -f $(System.DefaultWorkingDirectory)/pipelines/prometheus_values.yaml
Same command runs successfully when executed directly within the cluster
However keeps failing when trying to run over azure Devops pipeline.
The cluster has sufficient capacity, as verified by successful manual executions. Any guidance on why the pipeline might be timing out and how to resolve this would be greatly appreciated.