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

K8S集群外部访问,配置成nodeport仍无法访问 #765

Closed
donsmile opened this issue May 7, 2023 · 2 comments
Closed

K8S集群外部访问,配置成nodeport仍无法访问 #765

donsmile opened this issue May 7, 2023 · 2 comments
Labels
kind/bug Something isn't working

Comments

@donsmile
Copy link

donsmile commented May 7, 2023

环境:windows客户端无K8S服务,linux服务器部署K8S和Crane,默认是ClusterIP模式,通过官网的方式改成nodeport
image
image
image
这个地址仍是K8S内部访问地址,局域网的其他服务器无法使用:http://172.18.0.2:31839
但在K8S集群内部是可以访问的
image
image

@donsmile donsmile added the kind/bug Something isn't working label May 7, 2023
@lbbniu
Copy link
Member

lbbniu commented May 7, 2023

服务都正常启动了吗?

kubectl -n crane-system get pod 

@donsmile
Copy link
Author

donsmile commented May 8, 2023

服务都正常启动了吗?

kubectl -n crane-system get pod 

是的,后来我挂了一个NGINX反向代理就正常访问了,但是正常来说nodeport就可以直接访问。

@qmhu qmhu closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants