Using Scan
Scan is the resource for running and managing a single compliance scan for one profile.
TOC
When to Use ScanBasic Scan ExampleOS Scan ExampleScan ParametersReport Delivery ParametersNode Selection NotesScan AnnotationsMonitoring Scan ResultsWhen to Use Scan
Use Scan when you need to:
- run one profile by itself
- validate one target quickly without creating a batch resource
- manage execution directly for a single compliance baseline
- run a standalone OS scan such as
stig-os-microos
Use Using ScanSuite instead when you need to manage multiple profiles together or schedule repeated runs.
Basic Scan Example
OS Scan Example
Scan Parameters
The following table describes the top-level parameters of the Scan resource:
Report Delivery Parameters
If spec.reportDelivery is configured, the following fields are used for email delivery:
Node Selection Notes
For Scan, the node selection and scheduling fields are configured directly under spec.
See Node Selection and Scheduling for detailed behavior of scanType, nodeScopeStrategy, targetNodeRoles, and nodeSelector.
Important Notes:
- OS scanning requires
scanType: node. - CIS only supports
scanType: node;platformandallare not supported because kube-bench does not support rule-level node selection. - STIG supports
platform,node, andall.
Scan Annotations
The following annotation can be used to control Scan execution:
Monitoring Scan Results
To check the status and results of a Scan: