Skip to content

yoogoc/tonic-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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