You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "micsmile (via GitHub)" <gi...@apache.org> on 2023/05/10 05:12:40 UTC

[GitHub] [rocketmq-operator] micsmile opened a new issue, #157: 如何在外部网络访问broker

micsmile opened a new issue, #157:
URL: https://github.com/apache/rocketmq-operator/issues/157

   部署好后获取到的是集群内的IP


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] super-lzb commented on issue #157: 如何在外部网络访问broker

Posted by "super-lzb (via GitHub)" <gi...@apache.org>.
super-lzb commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1622895027

   @caigy 请问 broker 设置 HostNetwork = true后,外网客户端调用地址是 broker 的宿主机ip+10911 端口吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #157: 如何在外部网络访问broker

Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1543661056

   You can set `HostNetwork` as `true` so that you can access RocketMQ through host IPs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 如何在外部网络访问broker [rocketmq-operator]

Posted by "drivebyer (via GitHub)" <gi...@apache.org>.
drivebyer commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1870863365

   > > > 
   > > 
   > > 
   > > 可以考虑创建service以便于在k8s集群外访问rocketmq 吗?
   > 
   > 可以试下NodePort类型service
   
   +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] gzlboy commented on issue #157: 如何在外部网络访问broker

Posted by "gzlboy (via GitHub)" <gi...@apache.org>.
gzlboy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1561402043

   > 
   
   
   
   > > > You can set `HostNetwork` as `true` so that you can access RocketMQ through host IPs
   > > 
   > > 
   > > 当broker和namesrv都部署到同一个node上的时候,HostNetwork = true就不适合了吧?
   > 
   > @gzlboy 具体是哪里不合适呢?
   
   抱歉,测试是可以的,但是如果机器有限,设置了HostNetwork = true,多个broker就没法部署到同一个node中了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #157: 如何在外部网络访问broker

Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1630118222

   > @caigy 请问 broker 设置 HostNetwork = true后,外网客户端调用地址是 broker 的宿主机ip+10911 端口吗?
   
   @super-lzb 接入点仍是nameserver的地址,只是最终访问broker是通过 broker 的宿主机ip+10911 端口。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] gzlboy commented on issue #157: 如何在外部网络访问broker

Posted by "gzlboy (via GitHub)" <gi...@apache.org>.
gzlboy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1560472353

   > You can set `HostNetwork` as `true` so that you can access RocketMQ through host IPs
   
   当broker和namesrv都部署到同一个node上的时候,HostNetwork = true就不适合了吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] gzlboy commented on issue #157: 如何在外部网络访问broker

Posted by "gzlboy (via GitHub)" <gi...@apache.org>.
gzlboy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1560474705

   > 
   
   
   
   > > > 
   > > 
   > > 
   > > 可以考虑创建service以便于在k8s集群外访问rocketmq 吗?
   > 
   > 可以试下NodePort类型service
   
   namesrv可以暴露出去,关键是namesrv返回的broker ip是集群内ip,集群外无法访问,开发阶段很不方便,得把应用部署到集群内


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] ltamber commented on issue #157: 如何在外部网络访问broker

Posted by "ltamber (via GitHub)" <gi...@apache.org>.
ltamber commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1560346808

   > > 
   > 
   > 可以考虑创建service以便于在k8s集群外访问rocketmq 吗?
   
   可以试下NodePort类型service 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] gzlboy commented on issue #157: 如何在外部网络访问broker

Posted by "gzlboy (via GitHub)" <gi...@apache.org>.
gzlboy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1559646842

   > 
   
   可以考虑创建service以便于在k8s集群外访问rocketmq 吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #157: 如何在外部网络访问broker

Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1562276428

   > > 
   > 
   > > > > You can set `HostNetwork` as `true` so that you can access RocketMQ through host IPs
   > > > 
   > > > 
   > > > 当broker和namesrv都部署到同一个node上的时候,HostNetwork = true就不适合了吧?
   > > 
   > > 
   > > @gzlboy 具体是哪里不合适呢?
   > 
   > 抱歉,测试是可以的,但是如果机器有限,设置了HostNetwork = true,多个broker就没法部署到同一个node中了
   
   从健壮性角度考虑,一般不建议同一集群的broker共用一个node。不同集群的broker可以通过设置不同的listenPort以实现混部。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] micsmile commented on issue #157: 如何在外部网络访问broker

Posted by "micsmile (via GitHub)" <gi...@apache.org>.
micsmile commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1541379492

   nameservcie获取到的是集群内IP


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #157: 如何在外部网络访问broker

Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1560455824

   > > > 
   > > 
   > > 
   > > 可以考虑创建service以便于在k8s集群外访问rocketmq 吗?
   > 
   > 可以试下NodePort类型service
   
   每个broker需要其专属的service,维护broker与service或端口间映射关系的工作量不少


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #157: 如何在外部网络访问broker

Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #157:
URL: https://github.com/apache/rocketmq-operator/issues/157#issuecomment-1560983812

   > > You can set `HostNetwork` as `true` so that you can access RocketMQ through host IPs
   > 
   > 当broker和namesrv都部署到同一个node上的时候,HostNetwork = true就不适合了吧?
   
   @gzlboy 具体是哪里不合适呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org