kube-bench icon indicating copy to clipboard operation
kube-bench copied to clipboard

Kube-bench skips master node configuration checks while running it on default namespace

Open muddassir-r opened this issue 3 years ago • 0 comments
trafficstars

Overview

While running the kube-bench on k3s cluster it only performs"4. Worker Node Security Configuration" and "5. Kubernetes Policies" checks.

How did you run kube-bench?

  1. Created the job.yaml from https://github.com/aquasecurity/kube-bench/blob/main/job.yaml
  2. kubectl apply -f job.yaml (Which i think created a pod in default namespace)
  3. kubectl logs kube-bench-xxxx

What did you expect to happen:

Was expecting to perform all the cis-benchmark check from 1 to 5 .

Environment

What is your version of kube-bench? => kube-bench:v0.6.8

What is your version of Kubernetes? Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5+k3s1", GitCommit:"acad8ef8402021d6a78405c0b4fe420982e5ad1e", GitTreeState:"clean", BuildDate:"2021-09-20T17:40:35Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5+k3s1", GitCommit:"acad8ef8402021d6a78405c0b4fe420982e5ad1e", GitTreeState:"clean", BuildDate:"2021-09-20T17:40:35Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}

Anything else you would like to add: kube-bench-result.txt

[Miscellaneous information that will assist in solving the issue.]

muddassir-r avatar Aug 10 '22 05:08 muddassir-r