This is a guide to deploy a highly available Kubernetes cluster using haproxy, keepalived and kubeadm. After the playbook is executed, you'll have a join command for adding new nodes to the cluster. The playbook doesn't handle joining nodes yet. the join commands will be available at ./join_command file.
- Ansible
- SSH access to at least 2 nodes
- Clone this repo
git clone
-
Edit the vars/main.yml file to your needs
-
Edit the inventory/inventory hosts IPs.
-
Run the playbook
ansible-playbook playbook.yml -i inventory