-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: message error and add HttpMethodTypeAny definition
- Loading branch information
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 17 additions & 3 deletions
20
docs/pages/Concepts/ConfigurationService/KubernetesConfiguration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
# Kubernetes Configuration Service | ||
|
||
This service map a `SecretMap` or a `ConfigMap` to a JSON object | ||
This service will load and hot reload configuration from a `ConfigMap` or `Secret` in Kubernetes. | ||
|
||
Each key/value equals to the root of a branch | ||
The usual flow is to use `FileConfigurationService` in dev, and then switch it for the `KubernetesConfigurationService` in production. | ||
|
||
If the key ends with '.yaml' or '.json' it will be parsed, otherwise the full content is returned | ||
You have to configure the folder when the secret will be mounted | ||
|
||
``` | ||
"kubernetes": { | ||
"source": "/secrets" | ||
} | ||
``` | ||
|
||
The service will take the first of `webda.jsonc?` or `webda.yaml` as configuration | ||
|
||
To create the secret from your `local.config.jsonc` you can use the following command | ||
|
||
```bash | ||
kubectl create secret generic my-secret-name --from-file=webda.jsonc=local.config.jsonc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters