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, run the following command:
helm upgrade -n datree datree-webhook datree-webhook/datree-admission-webhook --reuse-values --set datree.scanIntervalHours=<interval>
<interval> with the number of hours you'd like to have between scans.
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, run the following command:
kubectl delete jobs/scan-job -n datree; kubectl create job --from=cronjob/scan-cronjob scan-job -n datree