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

Conversation

miekg
Copy link
Collaborator

@miekg miekg commented Dec 21, 2020

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.

Signed-off-by: Miek Gieben miek@miek.nl

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>
Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg miekg merged commit a428920 into main Dec 22, 2020
@miekg miekg deleted the env branch December 22, 2020 10:08
@miekg miekg mentioned this pull request Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant