2 releases

0.0.2 Apr 24, 2024
0.0.1 Apr 23, 2024

#5 in #kube

MIT license

10KB
192 lines

tonic-lb

A Grpc name resolver for tonic

usage

let uri = "kubernetes://service-name:8080/".into();
let channel = tonic_lb::kube::default_channel(uri).await?;
let client = YourServiceClient::new(channel);

an url can be one of the following

kubernetes://service-name:8080/
kubernetes://service-name.namespace:8080/
kubernetes://service-name.namespace.svc.cluster_name
kubernetes://service-name.namespace.svc.cluster_name:8080

service-name:8080/
service-name.namespace:8080/
service-name.namespace.svc.cluster_name
service-name.namespace.svc.cluster_name:8080

Dependencies

~65MB
~1M SLoC