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

port '1234' is not open #140

Closed lzwgiter closed 10 months ago

lzwgiter commented 1 year ago

Hi, I'm trying to install k8s goat into my cluster. After running scripts setup-kubernetes-goat.sh and access-kubernetes-goat.sh. I had checked the status of all pods. However, none of nodes in my cluster have opened 1234 port. Below are the pods, deployments status: 1

lzwgiter commented 1 year ago

I check the command in the access-kubernetes-goat.sh, below is the output of port-forward command: 2

then I check the .kube/config file, in the context, it shows the user is kubernetes-admin@kubernetes : 3

How to solve this problem(crying

madhuakula commented 10 months ago

Could you please check your local firewall or also run netstat -antlp and check the ports and interfaces?

lzwgiter commented 10 months ago

Thanks for your reply. I have solved the problem by upgrading my k8s version. It seems due to my replacement of the k8s client certificate to update expired date.