Skip to main content

Module kubernetes

Module kubernetes 

Source
Expand description

Kubernetes EndpointSlice service discovery.

use rust_zero_core::{KubernetesDiscovery, KubernetesDiscoveryConfig};
let discovery = KubernetesDiscovery::infer(
    KubernetesDiscoveryConfig::new("production").with_port_name("grpc"),
).await?;
let subscription = discovery.subscribe("users").await?;
println!("{:?}", subscription.endpoints());

Structs§

KubernetesDiscovery
A Kubernetes client that discovers ready addresses from EndpointSlices.
KubernetesDiscoveryConfig
Namespace, port, and URI settings for Kubernetes EndpointSlice discovery.
KubernetesServiceSubscription
A live, complete endpoint snapshot for one Kubernetes Service.

Enums§

KubernetesDiscoveryError