kubeasz/20.addnode.yml

14 lines
312 B
YAML
Raw Normal View History

2017-11-25 21:37:43 +08:00
- hosts: new-node
roles:
- prepare
- kubectl
- docker
- calico
- kube-node
- hosts: deploy
tasks:
- name: 批准新增node节点
shell: "sleep 15 && {{ bin_dir }}/kubectl get csr|grep 'Pending' | awk 'NR>0{print $1}'| xargs {{ bin_dir }}/kubectl certificate approve"
ignore_errors: true