You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 13s (x2 over 23s) job-controller Error creating: pods "kube-bench-node-" is forbidden: PodSecurityPolicy: unable to admit pod: [spec.securityContext.hostPID: Invalid value: true: Host PID is not allowed to be used spec.volumes[0].hostPath.pathPrefix: Invalid value: "/var/lib/kubelet": is not allowed to be used spec.volumes[1].hostPath.pathPrefix: Invalid value: "/etc/systemd": is not allowed to be used spec.volumes[2].hostPath.pathPrefix: Invalid value: "/etc/kubernetes": is not allowed to be used spec.volumes[3].hostPath.pathPrefix: Invalid value: "/usr/bin": is not allowed to be used]
What did you expect to happen:
I expected the test case executed successfully.
Environment
[What is your version of Kubernetes? (run kubectl version or oc version on OpenShift.)]
Ufortunately no configurable parameter (like namespace) available for execution, to make sure the proper PSP will be allocated for these PODs
because only the half of the namespace are predictable the other half is randomly generated, it's not possible to prepare the environment (pre create ns, sa, roler, rolebinding, psp)
The only way I found is to disable PSP on cluster level, but it's not so sophisticated. Maybe sa/role/rolebinding/psp should be created automatically, for this purpose.
The text was updated successfully, but these errors were encountered:
Overview
I executed the kube_bench_node test suite on a K8S cluster where strict PSP defined and the test failed.
How did you run kube-bench?
What happened?
Test case failed. For more information please check attach
functest-kubernetes.debug.log
functest-kubernetes.log
ed file
Log from cluster
What did you expect to happen:
I expected the test case executed successfully.
Environment
[What is your version of Kubernetes? (run
kubectl version
oroc version
on OpenShift.)]Running processes
Configuration files
Anything else you would like to add:
Ufortunately no configurable parameter (like namespace) available for execution, to make sure the proper PSP will be allocated for these PODs
because only the half of the namespace are predictable the other half is randomly generated, it's not possible to prepare the environment (pre create ns, sa, roler, rolebinding, psp)
The only way I found is to disable PSP on cluster level, but it's not so sophisticated. Maybe sa/role/rolebinding/psp should be created automatically, for this purpose.
The text was updated successfully, but these errors were encountered: