aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.65k stars 578 forks source link

Kube hunter is not working as expected when using --kubeconfig #524

Open hitesh-dev19 opened 1 year ago

hitesh-dev19 commented 1 year ago

I am trying to scan the cluster using kubecons

I gave the command --kubeconfig /location/of/kubeconfig/file --k8s-auto-discover-nodes --pod, it's always scanning the hsot kubernetes nodes, if I don't specify --pod flag seeing the error Kube Hunter couldn't find the clusters. I have the right valid kubeconfig file.

Can you please help me, I have to run this on multiple clusters.