secretflow / kuscia

Kuscia(Kubernetes-based Secure Collaborative InfrA) is a K8s-based privacy-preserving computing task orchestration framework.
https://www.secretflow.org.cn/docs/kuscia/latest/zh-Hans
Apache License 2.0
67 stars 47 forks source link

GRPC调用失败 #99

Open portalll opened 10 months ago

portalll commented 10 months ago

panic: rpc error: code = Unimplemented desc = unknown service proto.JobService [recovered] panic: rpc error: code = Unimplemented desc = unknown service proto.JobService。 winddows本地容器化部署中心节点样例。查询不到相关grpc服务,http端口正常,请问有GRPC客户端调用样例吗

:~/go/bin$ ./grpcurl -plaintext localhost:8083 list Failed to dial target host "localhost:8083": context deadline exceeded,本地和虚拟机上使用grpcurl也访问不到服务列表

yushiqie commented 10 months ago

目前kusciapi grpc/http都开启了tls,所以grpc方式访问也需要加上证书+token(具体参考kusciapi的http模式),比如:

./grpcurl -cert kusciaapi-client.crt \ -key kusciaapi-client.key \ -cacert ca.crt \ -H "Token: $(cat token)" \ localhost:8083 list

我们将在kusciapi文档中补充grpc客户端调用示例,感谢您的提问。

yushiqie commented 10 months ago

目前kusciapi grpc/http都开启了tls,所以grpc方式访问也需要加上证书+token(具体参考kusciapi的http模式),比如:

./grpcurl -cert kusciaapi-client.crt -key kusciaapi-client.key -cacert ca.crt -H "Token: $(cat token)" localhost:8083 list

我们将在kusciapi文档中补充grpc客户端调用示例,感谢您的提问。

job service 的 proto 是 kuscia.proto.api.v1alpha1.kusciaapi.JobService,可以通过上面的list接口查看

portalll commented 10 months ago

我们将在kusciapi文档中补充grpc客户端调用示例,感谢您的提问。

好的我刚查看到了,等我本地重新生成下proto再试试

yushiqie commented 10 months ago

好的,有疑问可以随时联系我们