Interface KubeResolver
- All Superinterfaces:
AddressResolver<ServiceAddress>
A resolver for services within a Kubernetes cluster.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KubeResolvercreate()Create a Kubernetes resolver with the default options.static KubeResolvercreate(KubeResolverOptions options) Create a Kubernetes resolver with the givenoptions.tokenProvider(Supplier<String> tokenProvider) Set a token provider for the resolver: thetokenProvidersupplier is called when the resolver needs a token or retries when the server responses with a401code.Methods inherited from interface AddressResolver
endpointResolver
-
Method Details
-
create
Create a Kubernetes resolver with the default options.- Returns:
- the resolver
-
create
Create a Kubernetes resolver with the givenoptions.- Returns:
- the resolver
-
tokenProvider
Set a token provider for the resolver: thetokenProvidersupplier is called when the resolver needs a token or retries when the server responses with a401code.- Parameters:
tokenProvider- the token provider called when a bearer token is needed- Returns:
- this instance
-