mirror of https://github.com/easzlab/kubeasz.git
23 lines
395 B
YAML
23 lines
395 B
YAML
# [optional] to synchronize system time of nodes with 'chrony'
|
|
- hosts:
|
|
- kube-master
|
|
- kube-node
|
|
- etcd
|
|
- ex-lb
|
|
- chrony
|
|
roles:
|
|
- { role: chrony, when: "groups['chrony']|length > 0" }
|
|
|
|
# to create CA, kubeconfig, kube-proxy.kubeconfig etc.
|
|
- hosts: localhost
|
|
roles:
|
|
- deploy
|
|
|
|
# prepare tasks for all nodes
|
|
- hosts:
|
|
- kube-master
|
|
- kube-node
|
|
- etcd
|
|
roles:
|
|
- prepare
|