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

export node's IP addresses as env vars #23

Merged
merged 2 commits into from
Dec 22, 2020
Merged

export node's IP addresses as env vars #23

merged 2 commits into from
Dec 22, 2020

Commits on Dec 21, 2020

  1. export node's IP addresses as env vars

    This uncovered a heap of stuff that wasn't done properly, hence the size
    of the PR.
    
    This adds 2 new flags --node-ip and --node-external-ip, which override
    whatever we find ourselves. We also set this on node object. And we
    export these as SYSTEMK_NODE_INTERNAL_IP and SYSTEMK_NODE_EXTERNAL_IP
    (unclear if we keep this though, looks handy though). Next I want to
    test this setup with Prometheus rewriting targets based on these values.
    The step after that is using CoreDNS which binds the metrics to the
    internal IP address by using the SYSTEMK_NODE_INTERNAL_IP env var.
    
    We also fix the environment settings for the API server host and port.
    We do require a kubeconfig to be given and should probably fatal if not
    seen.
    
    Signed-off-by: Miek Gieben <miek@miek.nl>
    miekg committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    887142f View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2020

  1. Fix prometheus pod yaml

    Signed-off-by: Miek Gieben <miek@miek.nl>
    miekg committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    357e870 View commit details
    Browse the repository at this point in the history