Skip to content
Snippets Groups Projects
Commit d1c72678 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Monitoring component:

- added wait control while MonitoringDB is starting
parent 10a63cc4
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!4Compute component:
......@@ -190,7 +190,17 @@ for EXTRA_MANIFEST in $TFS_EXTRA_MANIFESTS; do
printf "\n"
done
# By now, leave this control here. Some component dependencies are not well handled
# By now, leave these controls here. Some component dependencies are not well handled.
if [[ "$TFS_COMPONENTS" == *"monitoring"* ]]; then
echo "Waiting for 'MonitoringDB' component..."
# Kubernetes does not implement --for='condition=available' for statefulsets.
# By now, we assume a single replica of monitoringdb. To be updated in future releases.
kubectl wait --namespace $TFS_K8S_NAMESPACE \
--for=jsonpath='{.status.readyReplicas}'=1 --timeout=300s statefulset/monitoringdb
printf "\n"
fi
for COMPONENT in $TFS_COMPONENTS; do
echo "Waiting for '$COMPONENT' component..."
kubectl wait --namespace $TFS_K8S_NAMESPACE \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment