Role for deploying an high-available etcd cluster (key-value-store) on CentOS7. Kubernetes (save cluster state) or Patroni (postgres ha leader election) from Zalando use this in their backend.
No special requirements; note that this role requires root access.
- add etcd-servers (because of raft protocol 3,5 or 7) to your
/etc/ansible/hosts
- test the connection form ansible host to your etcd-servers
ansible -m ping etcd-servers
- rollout your playbook
git clone https://github.com/yanehi/ansible-role-etcd.git
ansible-playbook ansible-role-etcd/site.yml
- get the leader of the cluster
etcdctl -w table --endpoints=etcd1:2379,etcd2:2379,etcd0:2379 endpoint status
MIT
This role was created in 2020 by Yannic Nevado.