- hosts: new-node
roles:
- prepare
- docker
- kube-node
# 根据hosts中配置,以下两种网络只会安装一种
- { role: calico, when: "CLUSTER_NETWORK == 'calico'" }
- { role: flannel, when: "CLUSTER_NETWORK == 'flannel'" }