mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-06 11:01:03 +01:00
Add some commands to ensure kube-prometheus is fully successfully deployed.
This commit is contained in:
parent
1655e572a6
commit
6b3dc1d41c
@ -67,7 +67,12 @@ Though for a quickstart a compiled version of the Kubernetes [manifests](manifes
|
|||||||
* Simply create the stack:
|
* Simply create the stack:
|
||||||
```
|
```
|
||||||
$ kubectl create -f manifests/ || true
|
$ 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:
|
* And to teardown the stack:
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user