CKS KUBE-BENCH LAB issue

CKS Course ISSUE IN LAB FOR KUBE BENCH:

Hi i am facing an issue in executing ./kube-bench in the lab environment it doesnt run and indicates following error

bash: /root/kube-bench: cannot execute binary file: Exec format error

Please help and let me know the solution for the same
or route me to a place where i can get right guidance for the same

Hello @vdabhi123

Please make sure that you have installed kube bench sucessfully by following those commands:
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.3.1/kube-bench_0.3.1_linux_amd64.tar.gz -o kube-bench_0.3.1_linux_amd64.tar.gz

tar -xvf kube-bench_0.3.1_linux_amd64.tar.gz

then try again to run it using this command:

./kube-bench --config-dir pwd/cfg --config pwd/cfg/config.yaml

I have done those steps and version for kube-bench is 0.4.0.(as per exercise)

But during ./kube-bench - -config-dir pwd /cfg --config pwd /cfg/config.yaml

The issue I highlighted is coming

@vdabhi123
The issue concerns the installation, so make sure that you have followed the steps and don’t forget to change directory to the root directory and tell me if the issue still happens.
1 cd /root
2 curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.4.0/kube-bench_0.4.0_linux_amd64.tar.gz -o kube-bench_0.4.0_linux_amd64.tar.gz
3 tar -xvf kube-bench_0.4.0_linux_amd64.tar.gz
4 ./kube-bench --config-dir pwd/cfg --config pwd/cfg/config.yaml

1 Like