-
Notifications
You must be signed in to change notification settings - Fork 455
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: There seems to be some sort of writing protection on the docker image #419
Comments
This user seems to have got it working: #294 (comment) I still did not have time to try Kubernetes myself |
@williamdes I got somewhere.
Something isn't right with the image permission, even that other ticket you mentioned, you can see that user stopped mounting a volume for it to work. I was running
This is my whole Terraform template and it works fine on my homelab kubernetes.
Thank you |
Let's keep this one open until we solve most of it and have a working documentation for users. What changes do you want to make?
This makes no sense, it's probably the opposite. And it's an upgrade then |
I should have explained better lol For security reasons it is always a good practice to use a tagged version than latest, that is why I went with
hmm not really, if I redeploy this template, it will run So to wrap-up, I am running |
To give you more content: Declare the
Mount it:
Empty directory:
|
Thank you, I will have another look at this Also, why do you want to mount a volume? |
That is correct, I'm using the normal version.
I mean, why not?? hahaha Well, Kubernetes deployment will automatically deploy a stock container if you do that. This is a normal practice in Docker as it's with Kubernetes no matter if I'm running my homelab or the company GCP/AWS Kubernetes cluster. |
Okay, so if you mount the volume on the apache2 version it's most probably a bad idea to do it as it was not made for this use case. So you are mostly creating problems for yourself ^^
For this, there is no need to save any changes as nothing changes in the container :) Can you drop the lib-mysql volume and let me know if everything works great? |
Image: phpmyadmin:5.2.1
I am playing with phpmyadmin and mariadb on my homelab kubernetes cluster, and although it all works, the docker images doesn't seem to accept environment variables:
But none of those values are being passed over, in fact
TZ
is set asTZ=UTC
MariaDB pod which is set just like above:
printenv
does show those env and I canmysql -u user -p
and it all worksI can access it from phpmyadmin just fine but something isn't 100% right.
I tried to mount its
/var/www/html
as persistence volume, it does not accept that either, I mean, the volume is mounted empty so why I think there is some writing restriction on this image.mariadb
does mount its volume, I have deleted it dozen times playing around and the data stays as expected.Thank you
The text was updated successfully, but these errors were encountered: