See: Description
Class | Description |
---|---|
ConfigMapStore |
An implementation of configuration store reading config map from Kubernetes.
|
ConfigMapStoreFactory | |
KubernetesUtils |
Utility methods for Kubernetes.
|
ConfigRetriever
to use this store:
[source, $lang]
----
examples.Examples#example1(io.vertx.core.Vertx)
----
You need to configure the store to find the right configmap. this is done with:
* `namespace` - the project namespace, `default` by default. If the `KUBERNETES_NAMESPACE` ENV variable is set, it
uses this value.
* `name` - the name of the config map
* `optional` - whether or not the config map is optional (`true` by default)
If the config map is composed by several element, you can use the `key` parameter to tell
which `key` is read
The application must have the permissions to read the config map.
To read data from a secret, just configure the `secret` property to `true`:
[source, $lang]
----
examples.Examples#example2(io.vertx.core.Vertx)
----
If the config map is not available, an empty JSON object is passed as configuration chunk. To disable this
behavior and explicitly fail, you can set the `optional` configuration to `false`.Copyright © 2018 Eclipse. All rights reserved.