Is there any docs on how to deploy in cluster mode...
# spicedb
u
Is there any docs on how to deploy in cluster mode? I can't seem to find anything on it
v
👋🏻 you are right there is no extensive documentation on how to configure a cluster to do dispatching. We have an example set of kubernetes descriptors here: https://github.com/authzed/spicedb/blob/main/k8s/example.yaml In the example it indicates how to enable clustering here: https://github.com/authzed/spicedb/blob/main/k8s/example.yaml#L115-L118 You would also need to grant permission to the service to talk to the Server API via kube RBAC. The relevant resources to apply are https://github.com/authzed/spicedb/blob/main/k8s/example.yaml#L150-L184
u
I'm going to attempt to role a test cluster on Docker Swarm. I'll update with the steps after I figure them out
I just found the xds resolver. Is there any info on how to use that?
I can just read the code if necessary
v
I think @ecordell may be able to help!
e
XDS support is provided by grpc directly: https://github.com/grpc/grpc-go/blob/master/examples/features/xds/README.md you just need to set the
GRPC_XDS_BOOTSTRAP
env var and use an
xds://
prefixed dispatch address but you'll need to run your own XDS server and configure it (not sure what goes into that for docker swarm)
u
Sweet, thanks I'll look into it
6 Views