-
Notifications
You must be signed in to change notification settings - Fork 154
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
[doc] document how to run elastic-agent as a sidecar in ECK #3775
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Adding my initial thoughts here: Currently we deploy agents as a daemonsets and perform leader election in order only one agent to collect cluster wide metrics. So with sidecar installation we should introduce the spec:
containers:
- name: app1
image: test:v1
command: ['sh', '-c', 'echo test']
volumeMounts:
- name: data
mountPath: /opt
- name: elastic-agent-standalone
docker.elastic.co/beats/elastic-agent:8.12.0
args: ["-c", "/etc/elastic-agent/agent.yml", "-e"]
env:
...
volumeMounts:
.... (We should include all the info from manifest in the elastic-agent container part) There are some initial considerations:
|
I think the original request for this was simply to use it to monitor Elasticsearch and not the entire k8s cluster, which narrows the scope considerably. There was also an error encountered which might be the only blocker to using this, we would need more information to reproduce this like the configuration that was originally used.
|
If I remember correctly, the state is a |
This means the agent.id and state like the filebeat registry get deleted when the pod is recreated, so it appears as a new agent in Fleet and rereads log files from the beginning. It would get past this error though, but the state path is persisted outside the pod for a reason. If we for whatever reason we can't access the node file system it could be put onto a PVC but I don't think that simplifies the deployment at all. |
This is where the ability for Elastic Agent to use Kubernetes natively to store state comes into affect, and the ideas like KV store through the control protocol for state would solve these use-cases. |
Describe the enhancement:
Document how to run elastic-agent as a sidecar in ECK
Describe a specific use case for the enhancement or feature:
What is the definition of done?
External facing documentation exists that can be given to customers
The text was updated successfully, but these errors were encountered: