Not able to access the NodePort Service in openshift cluster

2/7/2020

I have one open-shift cluster and deployed the nginx image. Image deployed successfully and I am able to access Nginx service using node IP and node port.

Now I used the YAML file from the Nginx deployment & service and changed the ports, image path and names(replaced Nginx to myapp) and deployed on open shift. Deployment is successful but I am not able to access the service using node IP and nodeport.

When I do telnet to myapp
telnet localhost and node port--> Connected 
telnet 127.0.0.1 and node port--> Connection refused
telnet 0.0.0.0 and node port--> Connection refused
telnet node ip and node port--> Connection refused

if I do above telnet to Nginx service and its node port. it's successfully connected. Not sure is any issue with my application or environment.

Stuck with this for many days. Any clue why this is happening.

-- Gourav
kubernetes-pod
nginx
openshift

0 Answers