@Requires(property="kubernetes.client.discovery.mode-configuration.endpoint.watch.enabled", notEquals="true", defaultValue="false") @Singleton public class KubernetesServiceInstanceEndpointProvider extends AbstractV1EndpointsProvider
AbstractKubernetesServiceInstanceProvider.PortBinder
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
MODE
SECURE_LABEL
Constructor and Description |
---|
KubernetesServiceInstanceEndpointProvider(CoreV1ApiReactorClient client,
KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration)
Creates kubernetes instance endpoint provider.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<io.kubernetes.client.openapi.models.V1Endpoints> |
getEndpoints(java.lang.String name,
java.lang.String namespace) |
reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Endpoints> |
listEndpoints(java.lang.String namespace) |
getInstances, getMode, getServiceIds
buildServiceInstance, compositePredicate, discoveryConfigurationFilter, hasValidPortConfiguration, isMetadataSecure, isPortSecure, serviceConfigurationDiscoveryFilter
public KubernetesServiceInstanceEndpointProvider(CoreV1ApiReactorClient client, KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration)
client
- clientdiscoveryConfiguration
- discovery configurationpublic reactor.core.publisher.Mono<io.kubernetes.client.openapi.models.V1Endpoints> getEndpoints(java.lang.String name, java.lang.String namespace)
getEndpoints
in class AbstractV1EndpointsProvider
public reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Endpoints> listEndpoints(java.lang.String namespace)
listEndpoints
in class AbstractV1EndpointsProvider