-
Notifications
You must be signed in to change notification settings - Fork 137
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
kubernetes : can't read /etc/rundeck pv #153
Comments
Hi @cyrilbkr Sorry about the issue. The container will copy the default set of configurations from /opt/rundeck-defaults if /etc/rundeck is completely empty. Is that directory empty? If not, try manually copying over the files from this repo to your /etc/rundeck volume or try a fresh start with the volume directory empty before starting your customisation. Let me know how that works for you 😃 |
Thank you for your fast reply 👍 When using a fresh and empty persistent volume, i still have the issue. I can't run a shell in the container to check the etc dir because it crash too early in kubernetes. I tried your fix, i mounted the persistent volume in an tmp directory and i manually copy the generated etc files, then i restarted the pod and mounted the persistent volume in /etc/rundeck and it worked. Anyway, I see the owner of the etc files is rundeck, maybe kubernetes failed to writes this files as a non root user when starting the pod. I'll look, keep you update. Thanks |
No problem! Yes, the container initialisation script chowns the files under /etc/rundeck and other directories as needed due to the original docker implementation not handling ownership nicely. I don't have a lot of kubernetes experience, but I'm betting it has a way to map the user id or file permissions back to the host VM for easier management. That might do the trick for you. I'm currently on vacation, but can look at it a bit more when I get back next week 😃 |
Hi,
I use your docker-image in kubernetes with a persistent volume for the config dir (/etc/rundeck) but i got the following error in the pod log :
The text was updated successfully, but these errors were encountered: