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/08/01 03:10:07 UTC

[GitHub] [dubbo-samples] AlbumenJ commented on a diff in pull request #484: feat: add mesh mode in dubbo-samples-mesh-k8s

AlbumenJ commented on code in PR #484:
URL: https://github.com/apache/dubbo-samples/pull/484#discussion_r934105600


##########
dubbo-samples-mesh-k8s/dubbo-samples-mesh-provider/src/main/resources/k8s/Service.yml:
##########
@@ -11,4 +11,38 @@ spec:
   ports:
     - name: grpc-tri
       port: 50052
-      targetPort: 50052
\ No newline at end of file
+      targetPort: 50052
+
+---
+apiVersion: networking.istio.io/v1alpha3
+kind: VirtualService
+metadata:
+  name: dubbo-samples-mesh-provider
+  namespace: dubbo-demo
+spec:
+  hosts:
+    - dubbo-samples-mesh-provider.dubbo-demo.svc.cluster.local
+  http:
+    - route:
+        - destination:
+            host: dubbo-samples-mesh-provider.dubbo-demo.svc.cluster.local
+            subset: v1
+            port:
+              # 指定正在寻址的主机上的端口。如果服务只公开一个端口,则不需要显式选择端口

Review Comment:
   do not use chinese



-- 
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