open class KubernetesServiceImporter : ServiceImporter
A discovery bridge listening for kubernetes services and publishing them in the Vert.x service discovery. This bridge only supports the importation of services from kubernetes in vert.x (and not the opposite).
The bridge is configured using:
* the oauth token (using the content of `/var/run/secrets/kubernetes.io/serviceaccount/token` by default) * the namespace in which the service are searched (defaults to `default`).
Be aware that the application must have access to Kubernetes and must be able to read the chosen namespace.
Record are created from Kubernetes Service. The service type is deduced from the `service.type` label. If not set, the service is imported as `unknown`. Only `http-endpoint` are supported for now.
Author
Clement Escoffier
KubernetesServiceImporter()
A discovery bridge listening for kubernetes services and publishing them in the Vert.x service discovery. This bridge only supports the importation of services from kubernetes in vert.x (and not the opposite). The bridge is configured using: * the oauth token (using the content of `/var/run/secrets/kubernetes.io/serviceaccount/token` by default) * the namespace in which the service are searched (defaults to `default`). Be aware that the application must have access to Kubernetes and must be able to read the chosen namespace. Record are created from Kubernetes Service. The service type is deduced from the `service.type` label. If not set, the service is imported as `unknown`. Only `http-endpoint` are supported for now. |
open fun close(completionHandler: Handler<Void>): Unit |
|
open fun start(vertx: Vertx, publisher: ServicePublisher, configuration: JsonObject, completion: Future<Void>): Unit |