Hi All , I created a service , Able to curl from the same node but unable to vi . . .

chandru Ck:
Hi All ,

I created a service , Able to curl from the same node but unable to view the nginx webserver in a browser from my laptop please guide me

cloud_user@adkasd~/kube$ cat service.yaml
apiVersion: v1
kind: Service
metadata:
name: myapp-service
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 30004
selector:
app: myapp

================================================
cloud_user@cf0faad5dc1c:~/kube$ curl localhost:30004

<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href=“http://nginx.org/”>http://nginx.org|nginx.org</a>.<br/>
Commercial support is available at
<a href=“http://nginx.com/”>http://nginx.com|nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

Tej_Singh_Rana:
Hello, @chandru Ck
Where is your node?

chandru Ck:
Hi , in a cloud server

Tej_Singh_Rana:
can I know the name?

chandru Ck:
sure you mean the hostname ?

chandru Ck:
http://cf0faad5dc1c.mylabserver.com:30004/

Tej_Singh_Rana:
Cloud platform?

chandru Ck:
http://cf0faad5dc1c.mylabserver.com|cf0faad5dc1c.mylabserver.com

chandru Ck:
you know acloudguru

chandru Ck:
am using thier playground server

Tej_Singh_Rana:
Yes, I heard but haven’t used there server. I found this https://help.acloud.guru/hc/en-us/articles/360001477955-Cloud-Playground-FAQ#h_91f2897f-8feb-40a6-aeac-374c51c927c5|FAQ, please have a look.

chandru Ck:
thanks a lot its working

chandru Ck:
http://cf0faad5dc1c.mylabserver.com:30080/