-
Notifications
You must be signed in to change notification settings - Fork 469
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 don't support kubernetes deployment #561
Comments
Hi @pguan-phl , thanks for the issue. We are still defining the recommended configuration for deploying Agent in Kubernetes. |
Pinging @elastic/ingest-management (Team:Ingest Management) |
Pinging @elastic/agent (Team:Agent) |
@andresrc Thanks for the quick response, just FYI that I managed to work around this issue by adding a relay-volume (cp config-file form configMap to another shared volume), as below. But still, if this is solved(i.e. no WRITE action to the mounted config file) I can get rid of this uncomfortable resource definition.
|
Thanks @pguan-phl for trying it out in k8s and making it working, we have a meta issue open in the Beats repository and it would be great to have your input. I am going to close this issue lets have the discussion on the other repository. FYI @blakerouse |
App: Elastic-Agent
Version: 7.10.1
Environment: Kubernetes (azure aks)
( Not sure if this is the proper repo to report this issue, but I just can't find elastic/elastic-agent. If it's not proper repo please point me to the correct one)
I'm trying to deploy
docker.elastic.co/beats/elastic-agent:7.10.1
to our k8s, I provided theelastic-agent.yml
from configMap, only to see errors likeError: fail to enroll: could not save enrollment information: could not backup /tmp/config/elastic-agent.yml: rename /tmp/config/elastic-agent.yml /tmp/config/elastic-agent.yml.2021-01-24T23-02-17.4921.bak: device or resource busy
or
Error: fail to enroll: could not save enrollment information: could not backup /tmp/config/elastic-agent.yml: rename /tmp/config/elastic-agent.yml /tmp/config/elastic-agent.yml.2021-01-25T00-06-50.5729.bak: read-only file system
despite I tried mount the config to different path, with different securityContext(fsGroup:0/fsGroup:1000 etc), into folder or as file.
I'm not sure why it need to backup the config-file, but it seems to me the it is trying to "rename" instead of "copy" the config file when doing back-up. I feel it most reasonable to only READ the config file instead of WRITE to it.
The text was updated successfully, but these errors were encountered: