jbkc85 / moodle-kubernetes-tutorial

Shortened to 'M8s', this repository houses a simple tutorial on deploying Moodle in Kubernetes.
Apache License 2.0
17 stars 8 forks source link

Multi node kubernetes deployment #2

Open cdelacruzpinto opened 7 years ago

cdelacruzpinto commented 7 years ago

I've got another question :-)

Would this set-up work in a multi-node Kubernetes cluster without any modification? Can I edit my local hosts file to point moodle.local to the apropiate cluster node ip and will it work?

jbkc85 commented 7 years ago

it all depends. If you want to utilize the cluster for the load balancer (Traefik), you will need to set it up as a DaemonSet or use the kubectl scale to ensure Traefik is in fact loaded across all the machines in the cluster. Outside of the Load Balancer, everything should work as intended.

Just a note though, I don't believe this tutorial is quite ready for production style setups. First of all, running Postgres in a single pod is sorta scary - especially for sensitive data such as Moodle generally has. On top of that, this tutorial doesnt have HTTPS and anything with CNI security (container network interface), meaning any pods on the cluster can access this one as you deploy it.

Does that answer you question? Hopefully it makes sense :-).