mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-22 15:01:14 +02:00
Update README
- Use a more convenient kube mechanizm: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands\#wait
This commit is contained in:
parent
6190853c1c
commit
c4129e5483
@ -62,7 +62,10 @@ Though for a quickstart a compiled version of the Kubernetes [manifests](manifes
|
||||
# Note that due to some CRD size we are using kubectl server-side apply feature which is generally available since kubernetes 1.22.
|
||||
# If you are using previous kubernetes versions this feature may not be available and you would need to use kubectl create instead.
|
||||
kubectl apply --server-side -f manifests/setup
|
||||
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
|
||||
kubectl wait \
|
||||
--for condition=Established \
|
||||
--all CustomResourceDefinition \
|
||||
--namespace=monitoring
|
||||
kubectl apply -f manifests/
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user