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

[input.promethues] Pod IP will change after the host is shut down and restarted #16003

Open
Tong97 opened this issue Oct 11, 2024 · 1 comment

Comments

@Tong97
Copy link

Tong97 commented Oct 11, 2024

if _, ok = p.kubernetesPods[podID]; !ok {

Because the pod IP will change after the host is shut down and restarted, but the pod name will not change, which will cause the plug-in to always access the old IP, so this key cannot be used to determine whether to update the registered IP. Therefore, it is necessary to change the key value calculation or update the registered IP no matter what when there is an update event, because this does not affect anything.

@srebhan
Copy link
Member

srebhan commented Oct 11, 2024

As you seem to know what needs to be done, would you care to put up a PR fixing this issue!?

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

No branches or pull requests

2 participants