ansible-vbox-vagrant-kubernetes icon indicating copy to clipboard operation
ansible-vbox-vagrant-kubernetes copied to clipboard

multiple master and worker nodes situation?

Open yxiao168 opened this issue 4 years ago • 3 comments

Hello, I tried to deploy a 3 master nodes and 2 workers nodes cluster, the result doesn't seem to be right.

Thanks

$ more Vagrantfile IMAGE_NAME = "bento/ubuntu-18.04" K8S_NAME = "k8s34" MASTERS_NUM = 3 MEM = 2048 CPU = 2 NODES_NUM = 3 IP_BASE = "192.168.34." ...

$ kubectl get nodes --all-namespaces NAME STATUS ROLES AGE VERSION k8s-m-1 Ready master 3h11m v1.18.3 $

yxiao168 avatar Jun 03 '20 18:06 yxiao168

@yxiao168 thanks for opening the issue. The Kubernetes Cluster using Vagrant and Ansible is aimed at developers of micro services or applications that need an almost complete K8S cluster in their local development machines. Please let me know why would you need a multi master Kubernetes local development environment so I can better understand the scenario. Thanks!

javierruizjimenez avatar Jun 04 '20 10:06 javierruizjimenez

The reasons:

  1. I am glad to find your tutorial intuitive, and as an alternative to kubespray, https://github.com/kubernetes-sigs/kubespray It is more "official" and supports multiple master and worker nodes, though it is not error-free.

  2. The K8S stacks on GKE, EKS, and AKS are with multiple master nodes. The developers would like to test the K8S in different versions on a multiple master nodes environment on a local cluster.

yxiao168 avatar Jun 04 '20 13:06 yxiao168

Thanks @yxiao168 I will review and update the tutorial, I didn't try to deploy multiple masters so I will need to take that into account.

javierruizjimenez avatar Jun 05 '20 17:06 javierruizjimenez