Add some commands to ensure kube-prometheus is fully successfully deployed.

This commit is contained in:
Joshua Olson
2018-10-12 12:02:50 -05:00
parent 1655e572a6
commit 6b3dc1d41c

View File

@@ -67,7 +67,12 @@ Though for a quickstart a compiled version of the Kubernetes [manifests](manifes
* Simply create the stack:
```
$ kubectl create -f manifests/ || true
$ kubectl create -f manifests/ 2>/dev/null || true # This command sometimes may need to be done twice
# It can take a few seconds for the above 'create manifests' command to fully create the following resources, so verify the resources are ready before proceeding.
until kubectl get customresourcedefinitions servicemonitors.monitoring.coreos.com ; do date; sleep 1; echo ""; done
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
$ kubectl create -f manifests/ 2>/dev/null || true # This command sometimes may need to be done twice (to workaround a race condition).
```
* And to teardown the stack:
```