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

error creating ifluxdb pod #1

Open
ruslantagirov opened this issue Nov 17, 2021 · 1 comment
Open

error creating ifluxdb pod #1

ruslantagirov opened this issue Nov 17, 2021 · 1 comment

Comments

@ruslantagirov
Copy link

ruslantagirov commented Nov 17, 2021

Hi. I am testing dployment of Jmeter on OKD 4.7 and getting an error on Influxdb pod, which is defined by influxdb deployment config:
mkdir: cannot create directory '/var/lib/influxdb2/engine': Permission denied (from logs)
and the pod is in CrashLoopBackOff state because of this error.
Are there any solutions on this?

@okanarabaci
Copy link

I got this error as well. You need to run the pod with a service account with elevated access, such as the one in the cluster create script but for influxdb:

oc create serviceaccount useroot

oc adm policy add-scc-to-user anyuid -z useroot

oc patch dc/influxdb --patch '{"spec":{"template":{"spec":{"serviceAccountName": "useroot"}}}}'

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

No branches or pull requests

2 participants