You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. ---
  2. ##Bootstrap any new workers
  3. - hosts: kube-node
  4. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  5. gather_facts: false
  6. vars:
  7. ansible_ssh_pipelining: false
  8. roles:
  9. - { role: kubespray-defaults}
  10. - { role: bootstrap-os, tags: bootstrap-os}
  11. ##We still have to gather facts about our masters and etcd nodes
  12. - hosts: k8s-cluster:etcd:calico-rr
  13. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  14. vars:
  15. ansible_ssh_pipelining: true
  16. gather_facts: true
  17. ##Target only workers to get kubelet installed and checking in on any new nodes
  18. - hosts: kube-node
  19. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  20. roles:
  21. - { role: kubespray-defaults}
  22. - { role: kubernetes/preinstall, tags: preinstall }
  23. - { role: docker, tags: docker }
  24. - role: rkt
  25. tags: rkt
  26. when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]"
  27. - { role: etcd, tags: etcd, etcd_cluster_setup: false }
  28. - { role: vault, tags: vault, when: "cert_management == 'vault'"}
  29. - { role: kubernetes/node, tags: node }
  30. - { role: network_plugin, tags: network }