k3s/contrib/ansible/cluster.yml

53 lines
634 B
YAML
Raw Normal View History

---
- hosts: all
gather_facts: false
sudo: yes
roles:
- pre-ansible
tags:
- pre-ansible
# Install etcd
- hosts: etcd
sudo: yes
roles:
- etcd
tags:
- etcd
2015-03-31 22:05:36 +00:00
# install flannel
- hosts:
- etcd
- masters
- nodes
2015-03-31 22:05:36 +00:00
sudo: yes
roles:
- flannel
2015-03-31 22:05:36 +00:00
tags:
- flannel
2015-03-31 22:05:36 +00:00
# install kube master services
- hosts: masters
sudo: yes
roles:
- master
tags:
- masters
2015-06-17 23:00:11 +00:00
# launch addons, like dns
- hosts: masters
sudo: yes
roles:
2015-06-17 23:00:27 +00:00
- kubernetes-addons
2015-06-17 23:00:11 +00:00
tags:
2015-06-17 23:00:27 +00:00
- addons
- dns
2015-06-17 23:00:11 +00:00
# install kubernetes on the nodes
2015-05-30 15:16:19 +00:00
- hosts: nodes
sudo: yes
roles:
- node
tags:
- nodes