Skip to content

Commit

Permalink
Merge pull request #92 from MonzElmasry/add_k3s
Browse files Browse the repository at this point in the history
Add journalctl and sysd logs to mount necessary volumes for k3s-cis scans
  • Loading branch information
MonzElmasry authored Apr 27, 2021
2 parents d7e1d61 + d747bc6 commit c4e676c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkg/securityscan/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,21 @@ func New(clusterscan *cisoperatorapiv1.ClusterScan, clusterscanprofile *cisopera
HostPath: &corev1.HostPathVolumeSource{
Path: `/etc/group`,
},
},
}, {
Name: `journalctl`,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: ` /var/log/journal`,
},
}},
{
Name: `syslog`,
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: ` /var/log/syslog`,
},
}},
},
Containers: []corev1.Container{{
Name: `rancher-cis-benchmark`,
Expand Down Expand Up @@ -196,6 +210,12 @@ func New(clusterscan *cisoperatorapiv1.ClusterScan, clusterscanprofile *cisopera
}, {
Name: `etc-group`,
MountPath: `/etc/group`,
}, {
Name: `journalctl`,
MountPath: `/var/log/journal`,
}, {
Name: `syslog`,
MountPath: `/var/log/syslog`,
}},
}},
},
Expand Down

0 comments on commit c4e676c

Please sign in to comment.