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

[META Issue]Enhancement for being able to toggle the kubeadm-config api calls #40276

Open
3 of 4 tasks
gizas opened this issue Jul 17, 2024 · 4 comments
Open
3 of 4 tasks
Assignees
Labels
Team:obs-ds-hosted-services Label for the Observability Hosted Services team

Comments

@gizas
Copy link
Contributor

gizas commented Jul 17, 2024

This is the META issue that will summarise all the needed sub issues that are needed in order to be able to disable the /api/v1/namespaces/kube-system/configmaps/kubeadm-config API calls through configuration.

The relevant enhancement was raised here: https://github.com/elastic/enhancements/issues/21172
See this issue for more details

The enhancement finally needs to be available in the elastic agent when users install the Kubernetes Integration. Additional we note that the kubeadm config calls are being made both as part of log collection process start and as metrics collection starts.

So in more details the task list is:

Tasks

NOTES:

@gizas gizas self-assigned this Jul 17, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 17, 2024
@gizas gizas added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Jul 17, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 17, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

@gizas
Copy link
Contributor Author

gizas commented Sep 25, 2024

@cmacknz I was testing the above enhancement through the integration, but I could not observe any improvements in case of applying the use_kubeadm variable through the integration.

Image

I think the reason is that the kubernetes provider is already started and we call the GetPodMetadataGen here

So to my questions:

DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64 PACKAGES=tar.gz mage -v package
failed to run compiled magefile: signal: killed

I have at least 7GB of memory, any ideas how else I can unblock myself here?

@cmacknz
Copy link
Member

cmacknz commented Sep 25, 2024

Do we have an API for the elastic-agent to configure the add_kubernetes_metadata processors in advance?

Not yet.

I guess the work of elastic/elastic-agent#4670 is still in progress? I can not use it now somehow?

It was paused because we are working on getting rid of the beats sub-processes which would eliminate this problem.

I would suggest if you need control over this for k8s to expose it as a env var as was done for add_cloud_metadata. There is unfortunately no other easy change to make here, the global processor configuration is unnecessarily hard to do in the current agent architecture.

@henrikno
Copy link
Contributor

@gizas Could we add a way to toggle this via an ENV var?

Btw. failed to run compiled magefile: signal: killed went away from me when I upgraded go 1.22 to go 1.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ds-hosted-services Label for the Observability Hosted Services team
Projects
None yet
Development

No branches or pull requests

4 participants