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

MountVolume.SetUp failed for volume "kube-bench-eks-config" Error on EKS security hub integration

Open Gil-Tohar-Forter opened this issue 3 years ago • 1 comments

I am trying to run the kube-bench eks yaml, https://github.com/aquasecurity/kube-bench/blob/main/job-eks-asff.yaml. It creates the Service Account, the ConfigMap, and the pod is able to pull the image with no problem. However, as soon as it tries to mount the ConfigMap volume, it fails:

Warning FailedMount 3m53s (x3 over 3m54s) kubelet MountVolume.SetUp failed for volume "kube-bench-eks-config" : object "security"/"kube-bench-eks-config" not registered

I am using the default configurations. I have deployed all three resources (SA, ConfigMap, Job) in the "security" namespace, but it fails as well for the same error if I try the default namespace. I am running on EKS cluster version 1.22.

Gil-Tohar-Forter avatar Aug 23 '22 08:08 Gil-Tohar-Forter

@Gil-Tohar-Forter Hi, this is a bug from k8s, known examples of this issue were fixed in EKS 1.22.10: https://github.com/kubernetes/kubernetes/issues/105204

mozillazg avatar Aug 26 '22 13:08 mozillazg