You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/09/19 01:53:33 UTC

[GitHub] [dubbo] niejian opened a new issue, #10637: dubbo mesh开启后如何跨namespace调用

niejian opened a new issue, #10637:
URL: https://github.com/apache/dubbo/issues/10637

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   操作步骤如下:
   1. k8s环境下,consumer端开启mesh模式
   2. consumer端需要调用多个provider
   3. provider有应用级注册和接口级注册,并且需要的provider不再同一个namespace下
   问题:
   如何实现在一个consumer下,调用多个namespace下的provider,并且provider有应用级注册和接口级注册


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250692655

   > 添加这个变量是为了能够和 istio 通信,用于标记自身所在的环境,参数本身不会限制拉取的服务有多少
   
   是的,在k8s环境中未开启Mesh,这个变量不用配置;但是开启mesh并集成istio后就需要配置,现在的场景就是开启mesh,并需要跨多个不同的namespace


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian closed issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian closed issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用
URL: https://github.com/apache/dubbo/issues/10637


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250665103

   默认读取的数据应该就是支持跨 namespace 的


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250636935

   > Mesh 模式目前只支持 3.1 版本内互调,由于 istio 的限制无法同步 2.6,2.7 接口级的数据,向前兼容的版本目前正在规划中,后续可以关注 Dubbo Mesh 控制面的最新规划
   
   那在3.1的版本中,一个consumer需要调用到多个namespace的服务,这种需求该怎么配置


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250681045

   > POD_NAMESPACE 这个属性只是为了构建 xds node id 而已
   
   如果不配置 `POD_NAMESPACE `变量,调用的时候就报错,提示的是` No provider available for the xxx from registry istio-demo-dubbo-producer.default.svc.cluster.local:20885`
   
   添加这个属性,调用正常 `demo-dubbo-producer.istio-demo.svc.cluster.local:20885`


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] wenlong139 commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
wenlong139 commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1376990862

   这个 namespace 指的是 nacos的 namespace还是 k8s的namespace?


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1257328472

   > 这个应该是 thin sdk 的模式,可以提个 pr 看下怎么通过配置完善下 @conghuhu 也一起看下
   
   我可以尝试解决这个问题


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250631858

   Mesh 模式目前只支持 3.1 版本内互调,由于 istio 的限制无法同步 2.6,2.7 接口级的数据,向前兼容的版本目前正在规划中,后续可以关注 Dubbo Mesh 控制面的最新规划


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250688124

   添加这个变量是为了能够和 istio 通信,用于标记自身所在的环境,参数本身不会限制拉取的服务有多少


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250675555

   POD_NAMESPACE 这个属性只是为了构建 xds node id 而已


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1256852806

   这个应该是 thin sdk 的模式,可以提个 pr 看下怎么通过配置完善下 @conghuhu 也一起看下


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250672120

   > 默认读取的数据应该就是支持跨 namespace 的
   
   不配置的话,默认是`default`,按照这样配的话,就只能是限制成 `该项目的namespace`。我的疑问是:如果消费端需要去调用多个服务提供者,并且这些提供者分布在不同的namespace,这样该如何配置
   
   ```yaml
   env:
       - name: POD_NAMESPACE
         valueFrom:
           fieldRef:
             fieldPath: metadata.namespac
   ```
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] conghuhu commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
conghuhu commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1256858811

   ok,我看下这个问题


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by "niejian (via GitHub)" <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1407274235

   > 这个 namespace 指的是 nacos的 namespace还是 k8s的namespace?
   
   k8s


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1255851529

   @AlbumenJ @ulinkwo @
   
   开启mesh后,如果消费者要调用两个提供者,这两个提供者分别在不同的namespace,按照下面的代码寻址逻辑。是不是无法实现。因为只能配置一个环境变量`POD_NAMESPACE`;能否帮忙解答
   
   `ReferenceConfig#meshModeHandleUrl` dubbo版本 3.1.0
   
   ![image](https://user-images.githubusercontent.com/7080323/191905059-64e46b70-a0e2-4281-9b41-18522e02c3fa.png)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1263223318

   https://dubbo.apache.org/zh/overview/tasks/mesh/dubbo-mesh/#6-%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] niejian commented on issue #10637: dubbo mesh开启后,如何跨namespace调用与dubbo多版本调用

Posted by GitBox <gi...@apache.org>.
niejian commented on issue #10637:
URL: https://github.com/apache/dubbo/issues/10637#issuecomment-1250702420

   > 添加这个变量是为了能够和 istio 通信,用于标记自身所在的环境,参数本身不会限制拉取的服务有多少
   
   但是在开启mesh后,在不配置这个参数的情况下,看到的报错信息是`istio-demo-dubbo-producer.default.svc.cluster.local:20885`, 配置不同的值,域名就显示响应的地址;所以猜测 **这个参数参与对服务提供者的域名组装**,那不同的namespace下的服务是不是都要配置这个参数


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org