Class KubernetesServiceDiscovery
- java.lang.Object
-
- io.smallrye.stork.impl.CachingServiceDiscovery
-
- io.smallrye.stork.servicediscovery.kubernetes.KubernetesServiceDiscovery
-
- All Implemented Interfaces:
io.smallrye.stork.api.ServiceDiscovery
public class KubernetesServiceDiscovery extends io.smallrye.stork.impl.CachingServiceDiscoveryAn implementation of service discovery for Kubernetes. This implementation locates a Kubernetes service and retrieves the endpoints (the address of the pods backing the service).
-
-
Constructor Summary
Constructors Constructor Description KubernetesServiceDiscovery(String serviceName, KubernetesConfiguration config, io.vertx.core.Vertx vertx)Creates a new KubernetesServiceDiscovery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<List<io.smallrye.stork.api.ServiceInstance>>cache(io.smallrye.mutiny.Uni<List<io.smallrye.stork.api.ServiceInstance>> uni)io.smallrye.mutiny.Uni<List<io.smallrye.stork.api.ServiceInstance>>fetchNewServiceInstances(List<io.smallrye.stork.api.ServiceInstance> previousInstances)voidinvalidate()
-
-
-
Constructor Detail
-
KubernetesServiceDiscovery
public KubernetesServiceDiscovery(String serviceName, KubernetesConfiguration config, io.vertx.core.Vertx vertx)
Creates a new KubernetesServiceDiscovery.- Parameters:
serviceName- the service nameconfig- the configurationvertx- the vert.x instance
-
-