Update README

- Use a more convenient kube mechanizm:
 https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands\#wait
This commit is contained in:
David Rabkin 2022-09-01 19:01:12 +03:00
parent 6190853c1c
commit c4129e5483
No known key found for this signature in database
GPG Key ID: F523DC8161DA1757

View File

@ -59,10 +59,13 @@ Though for a quickstart a compiled version of the Kubernetes [manifests](manifes
```shell
# Create the namespace and CRDs, and then wait for them to be available before creating the remaining resources
# Note that due to some CRD size we are using kubectl server-side apply feature which is generally available since kubernetes 1.22.
# 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/
```