jbkc85/moodle-kubernetes-tutorial

Unable to write to moodledata

cdelacruzpinto opened this issue · 6 comments

I was able to follow the entire process described in the tutorial successfuly but when I try to access http://moodle.local, I obtain an error from Moodle "Unable to write to dataroot".

After doing the chmod inside the container (not the minikube vm) it worked.

I would like to ask another question: is this setup replication-aware? :-)

I would also like to thank you for this tutorial. It's a big step forward in containerizing moodle production deployments!

let me look into the storage issue. I haven't ran the tutorial for a while, but I will double check to see if everything is working appropriately.

As for the replication-aware, it is unfortunately not setup that way at the moment. I just started looking into auto-scaling with kubernetes (https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/) and am pretty intrigued by the notion. Even in there it says that you can use custom metrics to scale, which leads me to think writing something for an increased traffic for quizzes or chats could assist in scaling appropriately...things to add!

Woo. So I found this guys solution: kubernetes/kubernetes#2630 (comment), and added it to the deployment. I believe the issue should be resolved - though you will also have to download the latest jbkc85/docker-moodle (as i made a few adjustments there too).

Let me know if it works!

not a problem, i appreciate the read and comments. Let me know if the fix works for ya.