Support k3s.io kubernetes distribution #1178
thejan2009
started this conversation in
Development
Replies: 1 comment
-
@thejan2009 kube-bench is mainly about the official cis benchmark specs, however you can always add a profile for you need, many of our users are doing so. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've recently worked on assessing CIS benchmark compliance of the latest release of k3s.io kubernetes distribution. Mostly copied commands from their CIS Self Assessment Guide into custom rules to make it at least partially automated.
I'm trying to figure out if there is any interest to include these rules in kube-bench and also to estimate how much effort that would take.
The following questions need to be answered first:
k3s
is a single binary containing k8s components that are usually standalone programs (e.g.kube-apiserver
,kube-controller-manager
,kube-scheduler
). As a result we can'tps | grep
for these programs. Instead the Self Assessment Guide linked above suggests parsingk3s
service logs and finding the arguments there.journalctl
to run in the provided container image because of shared library conflicts, so I had to resort to running thekube-bench
on the host from deb package.k3s
is a single command. I commented them out, but I'm wondering if that's the right approach.k3s
can be ran withoutetcd
. In the Self Assessment Guide they provide a script to fake the answers in that case. That should probably be handled properly in the rules instead.Beta Was this translation helpful? Give feedback.
All reactions