Package io.vertx.serviceresolver.kube

## Interface KubeResolver

- All Superinterfaces:
    `AddressResolver<ServiceAddress>`

      public interface KubeResolver
      extends AddressResolver<ServiceAddress>

  A resolver for services within a Kubernetes cluster.

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static KubeResolver` | `create()` | Create a Kubernetes resolver with the default options.
    `static KubeResolver` | `create​(KubeResolverOptions options)` | Create a Kubernetes resolver with the given `options`.
    `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.

    - ### Methods inherited from interface io.vertx.core.net.AddressResolver

      `endpointResolver`

- - ### Method Detail

    - #### 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