Remove artifacts from deprecated Elastic Endpoint in K8s project#4081
Conversation
|
This pull request does not have a backport label. Could you fix it @norrietaylor? 🙏
NOTE: |
There was a problem hiding this comment.
The node autodiscovery of elastic agent is based (in one of the alternatives) to machine-id: https://github.com/elastic/elastic-agent-autodiscover/blob/e3da20d82e3f0fa03637f298d73d631cbd9b0068/kubernetes/util.go#L198
So the mounting of this /etc/machine-id is needed and not to be removed
It is the last alternative in case the NODE_NAME env var is not set for any reason. I think it is ok to leave the mount there and update the comment to |
8504235 to
bf68154
Compare
|
|
@norrietaylor what is the plan with this PR? Still relevant? |
|
|
This certainly slipped through the cracks. Apologies. This is clean up, that we should probably do, as the Elastic Defend integration in K8s is no longer supported or distributed. I made the changes requested by @gizas and @MichaelKatsoulis. If they give the LGTM, we can merge. |
Co-authored-by: Pierre HILBERT <pierre.hilbert@elastic.co> (cherry picked from commit 8e35021)
#4081 removed hostPID. Add comment that this setting is essential for Universal Profiling. Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
#4081 removed hostPID. Add comment that this setting is essential for Universal Profiling. Signed-off-by: Florian Lehner <florian.lehner@elastic.co>








What does this PR do?
The Elastic Endpoint in K8s project has been deprecated. This PR cleans up artifacts that remained in the Agent YAML due to that project.
This PR is tested in the cloud-defend CI pipeline.