songxiaohang vor 1 Jahr
Ursprung
Commit
f97ac1c8ee
2 geänderte Dateien mit 9 neuen und 5 gelöschten Zeilen
  1. 0 1
      app/cmd/dtgateway/dtgateway.go
  2. 9 4
      app/cmd/dtgateway/etc/dtgateway.yaml

+ 0 - 1
app/cmd/dtgateway/dtgateway.go

@@ -28,5 +28,4 @@ func main() {
 
 	fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)
 	server.Start()
-
 }

+ 9 - 4
app/cmd/dtgateway/etc/dtgateway.yaml

@@ -18,8 +18,13 @@ Log:
   Level: error
 
 #rpc service
+#OrganizationRpcConf:
+#  Endpoints:
+#    - 127.0.0.1:1117
+#  NonBlock: true
+#  Timeout: 0
+
 OrganizationRpcConf:
-  Endpoints:
-    - 127.0.0.1:1117
-  NonBlock: true
-  Timeout: 0
+  Timeout: 50000
+  Target: k8s://gt-datacenter/organization-rpc-svc:1117 #goctl kube 默认生成的k8s yaml的serviceName: {rpc中定义的name}-svc
+