-
Notifications
You must be signed in to change notification settings - Fork 251
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
Can InfluxDB2 be started with a pre-existing influx-configs file? #611
Comments
I have the same problem. |
I have the same issue. I run influxdb on an UBUNTU server in docker. I like to use my Synology NAS as a persistent store for the influx database. The NAS directory is mounted and owned by root. It looks like the influxdb docker container always runs as user:1000. I guess, this combination creates the issue for me. I have not been able to figure out how to make it work (I am not a Linux expert, I have to admit). Any help is appreciated. |
This problem might be related to this issue: kubernetes/kubernetes#62099 I don't think it's possible to set permissions on ConfigMaps and Secrets mounted as files, I was running into a similar error like
|
I'd like to run InfluxDB2 in a docker container in Kubernetes, and I'd like to avoid having to manually setup a user. I do know from https://hub.docker.com/_/influxdb that it's possible to do this using environment variables, and I've made that work, but I'd like to do this using a kubernetes secret instead and mount that as the file
/etc/influxdb2/influx-configs
in the container.I have this secret:
And I'm mounting it like this in my statefulset:
And this seems to work. If I go into the container I can see this:
I can also see that it seems to be a symbolic link:
However, if I port forward (
kubectl -n observability port-forward influxdb-0 8086:8086
) and open browser at http://localhost:8086 I'm redirected to http://localhost:8086/onboarding/0, which seems to indicate that my efforts failed.Here are the initial logs of the influxdb container:
Should this be possible? If so, what am I missing? Thanks for reading!
(I've also posted this here: https://stackoverflow.com/questions/72126100/bootstrap-influxdb-2-in-a-docker-container-with-pre-existing-influx-configs-file)
The text was updated successfully, but these errors were encountered: