mirror of https://github.com/easzlab/kubeasz.git
25 lines
405 B
YAML
25 lines
405 B
YAML
# 集群内时间同步
|
|
- hosts: all
|
|
roles:
|
|
- { role: chrony, when: "hostvars[groups.deploy[0]]['NTP_ENABLED'] == 'yes'" }
|
|
|
|
# 在deploy节点生成CA相关证书
|
|
- hosts: deploy
|
|
roles:
|
|
- deploy
|
|
|
|
# 集群节点的公共配置任务
|
|
- hosts:
|
|
- kube-master
|
|
- kube-node
|
|
- deploy
|
|
- etcd
|
|
- lb
|
|
roles:
|
|
- prepare
|
|
|
|
# [可选]多master部署时的负载均衡配置
|
|
- hosts: lb
|
|
roles:
|
|
- lb
|