Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 634 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 634 Bytes

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