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

Handle errors about k8s api nodes permissions #22683

Closed
ChrsMark opened this issue Nov 20, 2020 · 1 comment · Fixed by #22714
Closed

Handle errors about k8s api nodes permissions #22683

ChrsMark opened this issue Nov 20, 2020 · 1 comment · Fixed by #22714
Assignees
Labels
autodiscovery bug Team:Platforms Label for the Integrations - Platforms team v7.11.0

Comments

@ChrsMark
Copy link
Member

ChrsMark commented Nov 20, 2020

After #22189 we attach node metadata on pod metadata by default (without add_resource_metadata required to enabled) for both events coming from autodiscovered pods but also for events enriched by add_kubernetes_metadata. This is tries to create an api watcher under the hood which can lead in failures when users do not have access to k8s nodes api like at elastic/cloud-on-k8s#3966. We need to ignore these errors and just log an error about this instead of totally failing.

@ChrsMark ChrsMark added bug autodiscovery Team:Platforms Label for the Integrations - Platforms team v7.11.0 labels Nov 20, 2020
@ChrsMark ChrsMark self-assigned this Nov 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autodiscovery bug Team:Platforms Label for the Integrations - Platforms team v7.11.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants