2023-03-11 19:58:56 +00:00
|
|
|
# Well-known
|
|
|
|
|
2023-03-13 21:50:29 +00:00
|
|
|
A tiny service collecting and aggregating [well-known](https://www.rfc-editor.org/rfc/rfc5785) data from
|
2023-03-14 08:11:52 +00:00
|
|
|
services in the same Kubernetes namespace. The data is merged and exposed as a JSON object.
|
2023-03-13 21:50:29 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Add an annotation to a service:
|
|
|
|
|
|
|
|
| annotation | path |
|
|
|
|
| ------------------------------ | --------------------- |
|
|
|
|
| ` well-known.stenic.io/[path]` | `/.well-known/[path]` |
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
well-known.stenic.io/test-config: |
|
|
|
|
{"example": "value"}
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
curl http://[ingress]/.well-known/test-config
|
|
|
|
|
|
|
|
{
|
|
|
|
"example": "value"
|
|
|
|
}
|
|
|
|
```
|