rancher / dartboard

Code, instructions and results for scalability and performance tests on the Rancher product family
BSD 3-Clause "New" or "Revised" License
3 stars 6 forks source link

Fix Rancher monitoring deployment errors #7

Closed moio closed 2 months ago

moio commented 2 months ago

Previous code did not wait after Rancher installation to install Rancher Monitoring.

Since 2.9, some Rancher components need to be ready or the installation will fail, eg.:

2024/08/29 14:50:01 chart rancher-monitoring: failed pre-install: warning: Hook pre-install rancher-monitoring/templates/alertmanager/secret.yaml failed: 1 error occurred:
        * Internal error occurred: failed calling webhook "rancher.cattle.io.secrets": failed to call webhook: Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation/secrets?timeout=15s": no endpoints available fo
r service "rancher-webhook"

More components can be added if needed in the same way (eg. cattle-fleet-system/gitjob or cattle-provisioning-capi-system/capi-controller-manager, which did not pop up in my own tests but might turn out to be relevant).

git-ival commented 2 months ago

LGTM, waiting on #6 to be merged before approving + merging

moio commented 2 months ago

Rebased on main, PR is now clean from extraneous commits