By default, Datree will scan your cluster(s) every hour, and update your dashboard accordingly.
You can set the scan interval to be longer than 1 hour (but not shorter).
To do this, set the value of
datree.scanIntervalHours in your
values.yaml file to the desired number of hours, then apply it:
helm upgrade -n datree -f values.yaml datree-webhook datree-webhook/datree-admission-webhook
The policy(set of rules) used for the scan is the same one that is used when deploying new resources into the cluster. This policy is displayed in your dashboard, and can be changed using the command shown here.
The scan will check the following resource kinds:
The scan will ignore resources with the following
kubernetes.io/bootstrapping: rbac-defaults- used by Kubernetes to label default RBAC resources
app.kubernetes.io/part-of: datree- used by Datree to label its own resources
To initiate a scan manually, press the "Rescan cluster" button in your dashboard:
If you chose to configure Datree via the Helm chart, run the following command to initiate a scan:
kubectl delete jobs/scan-job -n datree; kubectl create job --from=cronjob/scan-cronjob scan-job -n datree