|
|
|
Ask HN: Kubernates on Vsphere
|
|
3 points
by paimpozhil
3581 days ago
|
|
We are developing a php/mysql app and it will involve lot of apis and be used by a large group of employees however this is not a public facing internet scale website. We are using containers (Dockers) so we were looking to setup the system so it is ready with HA/LB/Scale ready from the start. So we evaluated docker swarm but docker seems to have brought a half cooked swarm mode into mix and its needs it time to become stable/usable. We wanted to try Kubernates and since our servers are all Vmware ESXI , we gave its Vsphere deployment a go but it didn't work as advertised also looking at their github issues it seems like its maintained by a single person so not sure its the way to go. We are now looking to evaluate the Baremetal kubernates but running them in the VMs instead but we dont see how to setup the loadbalancer? Is that even possible? Also do you believe Kubernates going to support vmware/baremetal and other deployments going forward or they are only going to support the GCE/AWS/DO ? |
|
Once way is like haproxy in front that has each of the k8 nodes behind it.
How I did it in AWS since I didn't want k8 to create ELBs is
ELB->nginx (on the node outside of k8) -> k8 service nodeport
A nodeport is a type of service that opens the same port on all the k8 nodes to send traffic from the outside to inside the cluster. Even if a node doesn't run the container it can forward traffic to a node that does.
There are also now ingress controllers you can look at that do a lot of the work for you to reload what I did with nginx as soon as you create a service in k8.