Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to visit the vote page(what's the url) #7

Open
zhongy1999 opened this issue Jul 23, 2022 · 1 comment
Open

How to visit the vote page(what's the url) #7

zhongy1999 opened this issue Jul 23, 2022 · 1 comment

Comments

@zhongy1999
Copy link

the pods are running, port 31000 and port 31001 are used by a process called kube-proxy. to visiti the web page, I visit localhost:31000 at the master node, but it displays "Unable to establish connection". what's the reason, thanks!

@cptfixit
Copy link

cptfixit commented Dec 3, 2022

Since you say you're trying to access a port on localhost, I assume that you're running Kubernetes on your own computer.

In that case, you will need to change the definition files for the Voting-App service and the Result-App service. You need to change the service type from LoadBalancer to NodePort.

This will dynamically assign a port above 30k to the service. You can see which port, with kubectl get services, or kubectl describe service result-service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants