Hello
I have created a pod in kubernetes playground and want to expose pod so that I can access it from outside. I have used kubectl expose and NodePort . But the nodeport is not working. How I can do that in kubernetes playground in kodecloud .
Thanks and Regards
Binayok Bhowmik
Hi @binayokbhowmikxp ,
Can you please mention the playground name? We have 2 or more k8s playgrounds. It would be good if you will share the error screenshot.
Regards,
KodeKloud Support
Please share much more details so I can help you.
Hi
The name of the playground is “K8S 1.23 MULTI-NODE, PLAYGROUND – K8S 1.23 MULTI-NODE”.
Error is browser timeout. What I am trying to do is create a NodePort service in the playground. It’s getting created , there is no issue in that. The thing is I want to access the NodePort service from outside say my laptop browser. Is there any firewall that is blocking or does playground allow that to access any random port from external.
Hi @binayokbhowmikxp ,
I checked with the nginx image and it’s working as expected and I am able to access it in the browser as well.
You have to write the node port on the “View port” option.
Please find the attached screenshot.
Regards,