-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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] fork/exec from within STATE_PATH incompatible with K8s hostPath volumes #25326
Comments
Pinging @elastic/agent (Team:Agent) |
I realise I have not tried working around this issue with |
Tweaking
|
@urso @blakerouse Could we fix that for 7.14? |
We should spend some time on rethinking all the paths we need for the different environments. From my perspective we should find ways to support the above. |
We could possibly place the download directory in Should be do-able in 7.14. |
#24817 introduced a new predictable directory for the state of the Elastic Agent container. However it also executes the programs it runs from within that state directory.
As mentioned in #24160 on Kubernetes one common way to run Elastic Agent is as a DaemonSet. A DeamonSet cannot use persistent volumes to persist the Agent's state across container restarts. So to maintain state across upgrades or reconfigurations of the container ECK uses a
hostPath
volume. HostPath volumes however have anoexec
restriction. Agents using ahostPath
volume will therefore never be able to successfully run their configured programs.Unless we say DaemonSets are not a supported way of running Agent on Kubernetes I am thinking that it would be good to distinguish the different kinds of state agent uses:
noexec
restrictionThe text was updated successfully, but these errors were encountered: