Interface KubeResolver

All Superinterfaces:
AddressResolver<ServiceAddress>

public interface KubeResolver extends AddressResolver<ServiceAddress>
A resolver for services within a Kubernetes cluster.
  • Method Details

    • create

      static KubeResolver create()
      Create a Kubernetes resolver with the default options.
      Returns:
      the resolver
    • create

      static KubeResolver create(KubeResolverOptions options)
      Create a Kubernetes resolver with the given options.
      Returns:
      the resolver
    • tokenProvider

      KubeResolver tokenProvider(Supplier<String> tokenProvider)
      Set a token provider for the resolver: the tokenProvider supplier is called when the resolver needs a token or retries when the server responses with a 401 code.
      Parameters:
      tokenProvider - the token provider called when a bearer token is needed
      Returns:
      this instance