- Minimum 3 nodes [One master + etcd, 2 worker+etcd nodes]. You can have more worker nodes as per your requirement.
- The master node should have a minimum of 2 vCPU and 2GB RAM.
- For the worker nodes, a minimum of 1vCPU and 2 GB RAM is recommended.
- 192.X.X.X/X network range with static IPs for master and worker nodes. We will be using the 10 series as the pod network range that will be used by the Calico network plugin. Make sure the Node IP range and pod IP range don’t overlap.
- Internet connectivity for pulling containers required (Private registry can also be used)
- Full network connectivity between machines in the cluster – This is private or public
-
master:
- kube-scheduler: 10251
- kube-controller-manager: 10252
- kubelet: 10250
- api server: 6443
-
workers:
- kubelet: 10250
-
etcd: 2379, 2380
- OS: debian
- network: calico, flannel
- etcd deployment: kubeadm, service (systemd)
- Please read through global var file in: ./host_vars/all.yml
- If want clear k8s n etcd cluster, run playbooks: reset-etcd-cluster.yml, reset-k8s.yml
manual setup: https://dangquang.notion.site/Install-k8s-cluster-using-kubeadm-c3528ceddd9a48d2b308dbd822348273