eclipse-tractusx / sig-infra

Apache License 2.0
2 stars 2 forks source link

Goldilocks for resource settings recommendations #284

Closed evegufy closed 9 months ago

evegufy commented 9 months ago

Hi,

Goldilocks could be a quite useful tool to get recommendations about resource settings for all teams, at least when running on the int cluster.

I'd like to test its setup with the following helm chart on dev cluster: https://github.com/catenax-ng/product-portal-tools/blob/chore/goldilocks/charts/goldilocks/Chart.yaml

And if it works move to int.

Unfortunately my argo project doesn't have sufficient permissions... Could you please support the test by setting it up with proper permissions on the dev cluster using the following config: https://github.com/catenax-ng/product-portal-tools/blob/chore/goldilocks/charts/goldilocks/argocd/appsetup-dev.yaml https://github.com/catenax-ng/product-portal-tools/blob/chore/goldilocks/charts/goldilocks/envs/values-dev.yaml

Thanks!

almadigabor commented 9 months ago

Hi @evegufy! Just an idea as I haven't tested it yet. Currently you don't have the permission to create ClusterRole and ClusterRoleBinding objects in your project. Maybe in the helm chart you could set the controller.rbac and dashboard.rbac to false and then create your own Role and RoleBinding objects for the dashboard and controller. This way you would be able to monitor resources in the product-portal namespace.

evegufy commented 9 months ago

Hi @almadigabor setting 'controller.rbac' and 'dashboard.rbac' create to false did not make a difference but setting vpa.rbac create to false did make a difference: unfortunately, I was then encountering errors because my project isn't allow create CRDs for the vpa, I then decided to disable 'vpa' for testing and the install worked https://portal-goldilocks.dev.demo.catena-x.net/namespaces but as it hasn't access to anything it can't list anything :( When testing it successfully on local I also needed to enable 'vpa' and 'rbac'.

almadigabor commented 9 months ago

Deployed Goldilocks on dev and int environment for portal with @evegufy. Closing this issue for now. Might revisit later for a wider deployment including all products.