Skip to content
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

Unable to run elastic-agent synthetics as non-root user #7316

Closed
dbalijapalli0264 opened this issue Nov 14, 2023 · 2 comments
Closed

Unable to run elastic-agent synthetics as non-root user #7316

dbalijapalli0264 opened this issue Nov 14, 2023 · 2 comments

Comments

@dbalijapalli0264
Copy link

Bug Report

What did you do?
Create Yaml files to run elastic-agent synthetics as non-root user (PS: Root user run fine) - to run on-prem.
Document used: https://raw.githubusercontent.com/elastic/cloud-on-k8s/2.10/config/recipes/elastic-agent/fleet-kubernetes-integration-nonroot.yaml
From: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elastic-agent-fleet-configuration.html

(As elastic-agent-synthetics are supposed to be run s non-root for the checks to work)

What did you expect to see?
The agent running healthy, and accepting the checks.

What did you see instead? Under which circumstances?
cp: cannot create regular file '/usr/local/share/ca-certificates/ca.crt': Permission denied
Just want to know if there is any corrections to the documentation coming as I see few other tickets with similar comments.

  • ECK version:

    2.8

  • Kubernetes information:

    insert any information about your Kubernetes environment that could help us:

    • On premise ? yes
    • Cloud: GKE / EKS / AKS ? EKS
@barkbay
Copy link
Contributor

barkbay commented Nov 15, 2023

ECK version:
2.8

Fix is available in 2.10: #6700

Note that you may still experience some permission issues, I just opened #7317 to fix them.

Closing, reopen if needed.

@dbalijapalli0264
Copy link
Author

Appreciate your quick response and document updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants