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.26k stars 700 forks source link

Kubernetes GOAT exposure #156

Closed davidaavilar closed 1 month ago

davidaavilar commented 3 months ago

Hello, how can we expose this app to the internet? I see we can execute "access-kubernetes.sh" to expose the app internally. How can we do it using LoadBalancer SVC type on CSPs (AWS for example)? Thanks!

za commented 3 months ago

Hi @davidaavilar IMHO, it's not recommended to expose this app to the Internet as it's vulnerable. It might make your cloud account gets breached.

madhuakula commented 1 month ago

Yes, it's recommended to not be exposed to the internet. If you really wanted to expose, yes you can leverage the service type LoadBalancer. You can also use ingress as well to expose.