kubeasz/playbooks/01.prepare.yml

24 lines
443 B
YAML
Raw Normal View History

# [optional] to synchronize system time of nodes with 'chrony'
2019-06-23 07:36:51 +08:00
- hosts:
- kube_master
- kube_node
2019-06-23 07:36:51 +08:00
- etcd
- ex_lb
2019-06-23 07:36:51 +08:00
- chrony
2018-08-17 09:18:55 +08:00
roles:
2021-01-19 23:35:31 +08:00
- { role: os-harden, when: "OS_HARDEN|bool" }
- { role: chrony, when: "groups['chrony']|length > 0" }
2018-08-17 09:18:55 +08:00
# to create CA, kubeconfig, kube-proxy.kubeconfig etc.
- hosts: localhost
2017-11-11 19:14:21 +08:00
roles:
- deploy
2017-11-11 19:14:21 +08:00
# prepare tasks for all nodes
- hosts:
- kube_master
- kube_node
- etcd
2017-11-11 19:14:21 +08:00
roles:
- prepare