-
Notifications
You must be signed in to change notification settings - Fork 469
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部署Nacos2.x,建议使用ingress进行外部访问吗?有什么好的案例可以参考吗? #291
Comments
可以参考下这个 |
我采用的是pvc持久化部署的,用到了peerfinder插件,好像和这个问题还不太一样?目前在于ingress这一层 grpc的端口好像开放不了,ingress只开放了80 和443端口。所以用2.x的客户端连不上2.x的 nacos server |
ingress 可以改端口的呀 |
ingress的http端口(8848)和grpc端口(9848)在同一个ingress文件里面好像不能同时开放,grpc需要四层负载的支撑?这一块有案例么?2.x nacos ingress对外暴露访问 这个应该是一个通用的问题。 |
|
apiVersion: extensions/v1beta1 spec: |
hi,我也遇到了相同的情况,nacos需要开放grpc端口。 |
你好,我也遇到相同的问题,请问你这边有解决方案吗? |
我这边后来先用普通的nginx代理请求了。 根据其他人的描述,最好还是不要通过ingress,而是通过nodeport的方式配置nacos服务。或者说像nacos这种配置中心也许不适合用k8s部署 |
我也遇到了这个问题。 |
这个应该可以,看你自己的选择,但是用nodeport的方式的话,IP地址会因为比如node故障或者其他原因漂移。如果你selector锁定在某台node上,那这样配置就失去了k8s的意义,和你单独用docker或者非容器化手段部署就没有差别了。 |
我们也是使用 k8s Service loadbalance方式单独开了9848。 |
eg: apiVersion: v1 |
好像使用ingress Controller访问Grpc端口无法映射 。2.x的client无法使用grpc进行服务注册。如下图GRPC端口连不上。
![image](https://user-images.githubusercontent.com/35129699/150049937-ed39f66e-ddfb-4109-96e5-81ef137a712b.png)
The text was updated successfully, but these errors were encountered: