kubeasz/01.prepare.yml

25 lines
493 B
YAML
Raw Normal View History

2018-05-19 22:40:41 +08:00
# [可选]操作系统安全加固 https://github.com/dev-sec/ansible-os-hardening
- hosts: all
roles:
- { role: os-harden, when: "OS_HARDEN is defined and OS_HARDEN == 'yes'" }
# 在deploy节点生成CA相关证书以及kubedns.yaml配置文件
2017-11-11 19:14:21 +08:00
- hosts: deploy
roles:
- deploy
2017-11-11 19:14:21 +08:00
# 集群节点的公共配置任务
- hosts:
2018-03-02 08:40:29 +08:00
- kube-master
- kube-node
2017-11-25 21:31:00 +08:00
- deploy
- etcd
2017-12-15 17:27:56 +08:00
- lb
2017-11-11 19:14:21 +08:00
roles:
- prepare
# [可选]多master部署时的负载均衡配置
2017-11-11 19:14:21 +08:00
- hosts: lb
roles:
- lb