Skip to content

Commit 70b123c

Browse files
author
Bob Furu
authored
Merge pull request #44341 from Amrita42/BZ2007613new
2 parents 036fe18 + e950cb4 commit 70b123c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

modules/running-compliance-scans.adoc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,15 @@ roles:
3434
- worker <4>
3535
- master <4>
3636
scanTolerations: <5>
37-
- effect: NoSchedule
38-
key: node-role.kubernetes.io/master
39-
operator: Exists
40-
schedule: 0 1 * * * <6>
37+
default:
38+
- operator: Exists
39+
schedule: 0 1 * * * <6>
4140
----
4241
<1> The Compliance Operator creates a persistent volume (PV) that contains the results of the scans. By default, the PV will use access mode `ReadWriteOnce` because the Compliance Operator cannot make any assumptions about the storage classes configured on the cluster. Additionally, `ReadWriteOnce` access mode is available on most clusters. If you need to fetch the scan results, you can do so by using a helper pod, which also binds the volume. Volumes that use the `ReadWriteOnce` access mode can be mounted by only one pod at time, so it is important to remember to delete the helper pods. Otherwise, the Compliance Operator will not be able to reuse the volume for subsequent scans.
4342
<2> The Compliance Operator keeps results of three subsequent scans in the volume; older scans are rotated.
4443
<3> The Compliance Operator will allocate one GB of storage for the scan results.
4544
<4> If the scan setting uses any profiles that scan cluster nodes, scan these node roles.
46-
<5> The default scan setting object also scans the control plane nodes.
45+
<5> The default scan setting object scans all the nodes.
4746
<6> The default scan setting object runs scans at 01:00 each day.
4847
+
4948
As an alternative to the default scan setting, you can use `default-auto-apply`, which has the following settings:
@@ -67,9 +66,8 @@ roles:
6766
- worker
6867
- master
6968
scanTolerations:
70-
- effect: NoSchedule
71-
key: node-role.kubernetes.io/master
72-
operator: Exists
69+
default:
70+
- operator: Exists
7371
----
7472
<1> Setting `autoUpdateRemediations` and `autoApplyRemediations` flags to `true` allows you to easily create `ScanSetting` objects that auto-remediate without extra steps.
7573

0 commit comments

Comments
 (0)