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集群中的nacos通过nodeport暴露,我本机的微服务项目怎么能注册上去呢? #382

Closed
intna opened this issue Jan 5, 2023 · 3 comments

Comments

@intna
Copy link

intna commented Jan 5, 2023

在服务器的K8S集群中部署了standalone的nacos,然后通过nodeport暴漏,端口是30007,然后我本地无法通过这个端口去注册,这块我不太明白,还希望大佬指导一下,(还有就是我的容器内nacos不能通过dns名注册,只能通过pod的IP注册,但redis可以通过dns找到,nacos读取mysql的配置文件也是通过dns名)

@intna
Copy link
Author

intna commented Jan 5, 2023

Snipaste_2023-01-05_18-10-30

nacos的地址只能这么去找到,我不知道这个和我集群外无法通过nodeport注册有没有关系

@Accelerator96
Copy link
Contributor

你得把9848端口也暴露出来 nodeport的端口是30007+1000

@intna
Copy link
Author

intna commented Jan 6, 2023

你得把9848端口也暴露出来 nodeport的端口是30007+1000

好了,谢谢您

@intna intna closed this as completed Jan 6, 2023
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