elastic / elastic/elastic-package
Add support for multi node kubernetes cluster
- Dominant language
- Go
- Stars
- 72
- Forks
- 141
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 55
Description
After the addition of a proposed kubernetes manifest for fleet managed elastic [(manifest)](https://github.com/elastic/beats/blob/master/deploy/kubernetes/elastic-agent-managed-kubernetes.yaml) and the update of elastic-package to fetch this manifest from beats repo(https://github.com/elastic/elastic-package/pull/452, https://github.com/elastic/elastic-package/pull/461), elastic package deploys agent as Daemonset to test the integrations.
It would be nice the daemonset to be deployed in a multi node kubernetes cluster.
This way we can have multiple agents running (one in each node). Kubernetes integrations features such as leader election(https://github.com/elastic/integrations/pull/1321) and conditions for properly getting metrics from controller manager and scheduler (https://github.com/elastic/integrations/pull/1324) can be tested.
The code currently does support that.
Things to consider:
1. All nodes of kind cluster must be connected to elastic-package network
2. After agents are deployed, elastic package tries to get the readiness of the pods by filtering with `kind-control-plane` as the node as agent was supposed to run only that node. (https://github.com/elastic/elastic-package/blob/master/internal/testrunner/runners/system/servicedeployer/kubernetes.go#L107)
3. The policies must be applied in all running agents
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.