2f1f7a492d
etcd facts are generated in kubernetes/preinstall, so etcd nodes need to be evaluated first before the rest of the deployment. Moved several directory facts from kubernetes/node to kubernetes/preinstall because they are not backward dependent.
26 lines
625 B
YAML
26 lines
625 B
YAML
---
|
|
- hosts: etcd
|
|
roles:
|
|
- { role: kubernetes/preinstall, tags: preinstall }
|
|
- { role: etcd, tags: etcd }
|
|
- { role: docker, tags: docker }
|
|
|
|
- hosts: k8s-cluster
|
|
roles:
|
|
- { role: kubernetes/preinstall, tags: preinstall }
|
|
- { role: docker, tags: docker }
|
|
- { role: etcd, tags: etcd }
|
|
- { role: kubernetes/node, tags: node }
|
|
- { role: network_plugin, tags: network }
|
|
|
|
- hosts: kube-master
|
|
roles:
|
|
- { role: kubernetes/master, tags: master }
|
|
|
|
- hosts: k8s-cluster
|
|
roles:
|
|
- { role: dnsmasq, tags: dnsmasq }
|
|
|
|
- hosts: kube-master[0]
|
|
roles:
|
|
- {role: kubernetes-apps, tags: apps}
|