datreeio / datree

Prevent Kubernetes misconfigurations from reaching production (again 😤 )! From code to cloud, Datree provides an E2E policy enforcement solution to run automatic checks for rule violations. See our docs: https://hub.datree.io
https://datree.io
Apache License 2.0
6.39k stars 363 forks source link

Datree installation fails in Minikube due to insufficient cpu #848

Closed royhadad closed 1 year ago

royhadad commented 1 year ago

There is a temporary workaround at the bottom of the issue

Describe the bug when trying to install Datree in my local minikube, I get the following error:

[debug] failed post-install: timed out waiting for the condition

To Reproduce

  1. start minikube locally
  2. apply some resources that will request some cpu
  3. Install Datree using the one-liner https://github.com/datreeio/datree#2-install-datree-on-your-cluster

Expected behavior Datree should be installed successfully on the local cluster

Screenshots 203968620-7ffac4a9-9858-4d6f-8fbb-bb8ca577ccbb

Datree version (run datree version):

Temporary workaround Simply request less cpu for Datree resources (default is 1000m) when installing in a local minikube, either by editing the helm .values file, or using this one-liner instead:

helm install -n datree datree-webhook datree-webhook/datree-admission-webhook --create-namespace --set resources.requests.cpu=100m --set scanJob.resources.requests.cpu=100m --set datree.token=<TOKEN>
Nikhil26112 commented 1 year ago

Is this issue resolved? @royhadad

adifayer commented 1 year ago

@Nikhil26112 Yes, the issue is resolved :)

royhadad commented 1 year ago

@Nikhil26112 Yep! By default, Datree is now installed without cpu request. When installing it on a production cluster, you should add cpu/memory requests and limits via the Values.yaml file