madhuakula / kubernetes-goat

Kubernetes Goat is a "Vulnerable by Design" cluster environment to learn and practice Kubernetes security using an interactive hands-on playground 🚀
https://madhuakula.com/kubernetes-goat
MIT License
4.39k stars 709 forks source link

Error: Could not find kubectl or an other error happend, please check kubectl setup. #105

Closed GoliTech closed 1 year ago

GoliTech commented 1 year ago

After the kubectl installation, when want to run: "bash setup-kubernetes-goat.sh", an error will be shown: Error: Could not find kubectl or another error happend, please check kubectl setup.

I assume it because of the warning error which kubernetes mentined also in their documentation. (https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/).

Is there any solution?

madhuakula commented 1 year ago

Hey @Goli-git

Thanks for trying it out. Yes, looks like you need to have first installed kubectl tool in your system to setup the Kubernets Goat. Also, you need to have the Kubernetes Cluster with admin rights.

Feel free to join our discord community and there are a lot of folks to help you! https://madhuakula.com/kubernetes-goat/docs/kubernetes-goat-community

GoliTech commented 1 year ago

Hey @madhuakula, thanks for the fast reply. I have already followed the instruction but that error still is occurring.