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

[Elastic Agent] Provide k8s manifest to deploy agent on k8s with automatic enrolment to fleet. #25237

Closed
ChrsMark opened this issue Apr 22, 2021 · 4 comments · Fixed by #26566
Assignees
Labels
discussion kubernetes Enable builds in the CI for kubernetes Team:Elastic-Agent Label for the Agent team Team:Integrations Label for the Integrations team

Comments

@ChrsMark
Copy link
Member

ChrsMark commented Apr 22, 2021

We already support Elastic-Agent on k8s in standalone mode. We should be able to provide proposed manifests so as to start agent as Daemonset pods and automatically enrol them to fleet server (ie https://github.com/elastic/elastic-package/blob/f092978b96cc25d55144236d46b2d201079316a7/internal/install/static_kubernetes_elastic_agent_yml.go#L39). Then through kibana we can enable the k8s integration accordingly.

And if we tune k8s package so as to enable conditions we can do sth similar with https://github.com/elastic/integrations/blob/88b02e1ec40e122fa0de28f4b777cb51b3aba[…]s/linux/data_stream/network_summary/agent/stream/stream.yml.hbs so as we can use leaderelection for state_* metrics from kibana UI as we do with standalone mode.

I'm not sure about the priority of this right now but let's have a specific issue for reference.

cc: @mukeshelastic @exekias @blakerouse

@ChrsMark ChrsMark added Team:Elastic-Agent Label for the Agent team Team:Integrations Label for the Integrations team labels Apr 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@adam-stokes
Copy link

I dont know if this helps but here is a WIP im doing that brings up a full stack with fleet server enabled. The next step would be to add X number of agents to enroll into fleet and run our e2e test suite against it

https://github.com/elastic/e2e-testing/tree/k8s-deployment/cli/config/kubernetes

@ChrsMark
Copy link
Member Author

This is cool @adam-stokes , thanks for sharing! The Agent part you are planning to add should be reused here too I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion kubernetes Enable builds in the CI for kubernetes Team:Elastic-Agent Label for the Agent team Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants