You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kubernetes: There seems to be some sort of writing protection on the docker image #419
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 as TZ=UTC
MariaDB pod which is set just like above:
printenv does show those env and I can mysql -u user -p and it all works
I 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.
phpmyadmin:latest did accepts the envs but I am not big fan of running latest images.
But even it won't mount the volume, you get access denied issues so if I wanna make changes, I must compile my own docker image.
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 phpmyadmin:2.5.1 so I downgraded to phpmyadmin:2.5 and it is accepting the envs now.
When accessing for the first time, it auto login using the envs input, no more loging is required.
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?
I was running phpmyadmin:2.5.1 so I downgraded to phpmyadmin:2.5 and it is accepting the envs now.
This makes no sense, it's probably the opposite. And it's an upgrade then
Is 5.2.1 tag working better?
By the way, using latest or an other tag gives you the same software and container. I mean latest is only a shortcut name :)
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 5.2.1 instead of latest
By the way, using latest or an other tag gives you the same software and container. I mean latest is only a shortcut name :)
hmm not really, if I redeploy this template, it will run 5.2 while the latest will pick always the latest version which I believe is 5.2.1
I usually check the vulnerabilities and compile my own image with the fix but yeah, won't get into that lol
So to wrap-up, I am running phpmyadmin:5.2 at the moment because the vars are being passed over as expected, the auto-login works as expected by reading the envs, 5.2.1 didn't work.
The only pending bit is the volume, if I set a persistentvolumeclaim to keep the files, it gives me an access denied permission.
I can live with that for now and it is homelab so.
Thank you, I will have another look at this
But the tag 5.2.1 is exactly the same as 5.2, at the moment. I do not get why it's not working
You are not using the fpm version, right?
Also, why do you want to mount a volume?
The container manages it's content itself :)
That said a while ago it would have filled your volume with the contents. But we need to fix this back
Also, why do you want to mount a volume?\nThe container manages it's content itself :)
I mean, why not?? hahaha
Heimdall Dashboard for example, to upload higher quality background image, you need to edit its config file and restart the container.
Well, Kubernetes deployment will automatically deploy a stock container if you do that.
Also, if you update the container version, any changes will be lost so why you wanna mount the application volume for any changes to remain no matter what happened with the container.
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 ^^
Also, if you update the container version, any changes will be lost so why you wanna mount the application volume for any changes to remain no matter what happened with the container.
For this, there is no need to save any changes as nothing changes in the container :)
You are safe dropping the volume for var www
The only volumes you should mount are the ones you can find in the documentation.
Can you drop the lib-mysql volume and let me know if everything works great?
I hope I did not miss an aspect of Kubernetes
Activity
williamdes commentedon Jul 14, 2023
This user seems to have got it working: #294 (comment)
I still did not have time to try Kubernetes myself
HakunMatat4 commentedon Jul 14, 2023
@williamdes I got somewhere.
phpmyadmin:latestdid accepts theenvsbut I am not big fan of running latest images.But even it won't mount the volume, you get access denied issues so if I wanna make changes, I must compile my own docker image.
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
phpmyadmin:2.5.1so I downgraded tophpmyadmin:2.5and it is accepting theenvsnow.When accessing for the first time, it auto login using the
envsinput, no more loging is required.This is my whole Terraform template and it works fine on my homelab kubernetes.
Thank you
williamdes commentedon Jul 14, 2023
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
Is 5.2.1 tag working better?
By the way, using latest or an other tag gives you the same software and container. I mean latest is only a shortcut name :)
HakunMatat4 commentedon Jul 14, 2023
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
5.2.1instead oflatesthmm not really, if I redeploy this template, it will run
5.2while thelatestwill pick always the latest version which I believe is5.2.1I usually check the vulnerabilities and compile my own image with the fix but yeah, won't get into that lol
So to wrap-up, I am running
phpmyadmin:5.2at the moment because thevarsare being passed over as expected, the auto-login works as expected by reading the envs,5.2.1didn't work.The only pending bit is the volume, if I set a
persistentvolumeclaimto keep the files, it gives me an access denied permission.I can live with that for now and it is homelab so.
HakunMatat4 commentedon Jul 14, 2023
To give you more content:
Declare the
persistentvolumeclaim:Mount it:
Empty directory:
williamdes commentedon Jul 14, 2023
Thank you, I will have another look at this
But the tag 5.2.1 is exactly the same as 5.2, at the moment. I do not get why it's not working
You are not using the fpm version, right?
Also, why do you want to mount a volume?
The container manages it's content itself :)
That said a while ago it would have filled your volume with the contents. But we need to fix this back
HakunMatat4 commentedon Jul 14, 2023
That is correct, I'm using the normal version.
I mean, why not?? hahaha
Heimdall Dashboard for example, to upload higher quality background image, you need to edit its config file and restart the container.
Well, Kubernetes deployment will automatically deploy a stock container if you do that.
Also, if you update the container version, any changes will be lost so why you wanna mount the application volume for any changes to remain no matter what happened with the container.
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.
williamdes commentedon Jul 18, 2023
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 :)
You are safe dropping the volume for var www
The only volumes you should mount are the ones you can find in the documentation.
Can you drop the lib-mysql volume and let me know if everything works great?
I hope I did not miss an aspect of Kubernetes