I use three VMs in my laptop Oracle VirtualBox as below:
NAME STATUS ROLES AGE VERSION localhost Ready control-plane,master 7d7h v1.21.0 saeed Ready <none> 4d2h v1.21.0 saeed2 Ready <none> 17h v1.21.0
As you see, localhost is the Master node.
I’m new to Kubernetes but I recently learnt how to use Docker and deploy an application on it, but I have some questions about deploying application on Kubernetes and I did not found my answer by googling.
Suppose the above conditions, I want to run a simple WordPress application with MySQL.
I want to run WordPress on saeed and MySQL on saeed2. How may I reach this?
I want to control everything with my Master node. I mean like creating .yml file and telling which yaml file to run on which worker.
I saw this tutorial but I think it’s for just one single node.
Also since K8S manages load balancing itself, is there an automatic way to to run a yaml file on Master node and then the Master automatically deploys them on different nodes?
Thanks in advance