Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataclients/kubernetes: add metadata route - zone aware option 2 #2845

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 17, 2024

  1. dataclients/kubernetes: add metadata route

    Adds a special route with a predefined id `kube__metadata`
    that contains `False` predicate, no filters and endpoints metadata.
    
    Endpoints metadata is encoded as JSON via [data URI scheme](https://en.wikipedia.org/wiki/Data_URI_scheme)
    into the route backend address field.
    
    Example eskip:
    ```
    kube__metadata: False() -> "data:application/json;base64,eyJhZGRyZXNzZXMiO...";
    ...
    ```
    
    A special route pre-processor detects and removes this route, decodes metadata
    and stores it as EndpointRegistry metrics.
    
    The endpoint metrics then used to obtain endpoint node and pod names
    for tracing and logging.
    
    TODO:
    - [ ] add flag  to enable metadata route
    - [ ] tests
    
    Fixes #1559
    
    Signed-off-by: Alexander Yastrebov <[email protected]>
    AlexanderYastrebov committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    5b46917 View commit details
    Browse the repository at this point in the history