kubeasz/90.setup.yml

44 lines
553 B
YAML
Raw Permalink Normal View History

2017-11-12 14:54:20 +08:00
# 在deploy节点生成CA相关证书以供整个集群使用
- hosts: deploy
2017-11-11 19:14:21 +08:00
roles:
2017-12-08 17:43:51 +08:00
- deploy
2017-11-11 19:14:21 +08:00
2017-11-12 14:54:20 +08:00
# 集群节点的公共配置任务
- hosts:
- kube-cluster
2017-11-28 21:35:40 +08:00
- deploy
- etcd
2017-11-11 19:14:21 +08:00
roles:
2017-11-12 14:54:20 +08:00
- prepare
2017-11-11 19:14:21 +08:00
# [可选]多master部署时的负载均衡配置
2017-11-12 14:54:20 +08:00
- hosts: lb
2017-11-11 19:14:21 +08:00
roles:
2017-11-12 14:54:20 +08:00
- lb
2017-11-11 19:14:21 +08:00
2017-11-12 14:54:20 +08:00
- hosts: etcd
2017-11-11 19:14:21 +08:00
roles:
2017-11-12 14:54:20 +08:00
- etcd
2017-11-11 19:14:21 +08:00
- hosts:
- kube-cluster
2017-11-28 21:35:40 +08:00
- deploy
2017-11-11 19:14:21 +08:00
roles:
2017-11-12 14:54:20 +08:00
- kubectl
- hosts: kube-cluster
roles:
2017-11-12 14:54:20 +08:00
- docker
- hosts: kube-cluster
roles:
2017-11-11 19:14:21 +08:00
- calico
- hosts: kube-master
roles:
- kube-master
- hosts: kube-node
roles:
- kube-node