grpc / grpc-node

gRPC for Node.js
https://grpc.io
Apache License 2.0
4.45k stars 642 forks source link

can we provide a detailed tutorial of grpc-js-xds? #2749

Closed wang-xiaowu closed 4 months ago

wang-xiaowu commented 4 months ago

Is your feature request related to a problem? Please describe.

i am confusing of xds bootstrap use in istio

Describe the solution you'd like

a clear code example of using grpc-js-xds

Describe alternatives you've considered

Additional context

murgatroid99 commented 4 months ago

There is a blog post about using Istio with gRPC proxyless service mesh (including @grpc/grpc-js-xds). As the blog post says, support for this in Istio is experimental and incomplete, so keep that in mind when you use it.

Regarding bootstap files in particular, that blog post says

For gRPC servers, your Pod should also be annotated with proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' to make sure the in-agent xDS proxy and bootstrap file are ready before your gRPC server is initialized.

I also want to note that that blog post says that it supports mutual TLS, but that functionality is not yet supported in @grpc/grpc-js-xds.