public class KubernetesServiceImporter extends Object implements ServiceImporter
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.
Modifier and Type | Field and Description |
---|---|
static String |
KUBERNETES_UUID |
Constructor and Description |
---|
KubernetesServiceImporter() |
Modifier and Type | Method and Description |
---|---|
void |
close(io.vertx.core.Handler<Void> completionHandler) |
void |
start(io.vertx.core.Vertx vertx,
ServicePublisher publisher,
io.vertx.core.json.JsonObject configuration,
io.vertx.core.Promise<Void> completion) |
public static final String KUBERNETES_UUID
public void start(io.vertx.core.Vertx vertx, ServicePublisher publisher, io.vertx.core.json.JsonObject configuration, io.vertx.core.Promise<Void> completion)
start
in interface ServiceImporter
public void close(io.vertx.core.Handler<Void> completionHandler)
close
in interface ServiceImporter
Copyright © 2020 Eclipse. All rights reserved.