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.

45 lines
1.5 KiB

  1. ---
  2. - hosts: bastion[0]
  3. gather_facts: False
  4. roles:
  5. - { role: kubespray-defaults}
  6. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  7. ##Bootstrap any new workers
  8. - hosts: kube-node
  9. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  10. gather_facts: false
  11. vars:
  12. ansible_ssh_pipelining: false
  13. roles:
  14. - { role: kubespray-defaults}
  15. - { role: bootstrap-os, tags: bootstrap-os}
  16. ##We still have to gather facts about our masters and etcd nodes
  17. - hosts: k8s-cluster:etcd:calico-rr
  18. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  19. vars:
  20. ansible_ssh_pipelining: true
  21. gather_facts: true
  22. ##We need to genereate the etcd certificates beforhand
  23. - hosts: etcd
  24. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  25. roles:
  26. - { role: kubespray-defaults}
  27. - { role: etcd, tags: etcd, etcd_cluster_setup: false }
  28. ##Target only workers to get kubelet installed and checking in on any new nodes
  29. - hosts: kube-node
  30. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  31. roles:
  32. - { role: kubespray-defaults}
  33. - { role: kubernetes/preinstall, tags: preinstall }
  34. - { role: container-engine, tags: "container-engine"}
  35. - { role: download, tags: download, when: "not skip_downloads" }
  36. - { role: etcd, tags: etcd, etcd_cluster_setup: false }
  37. - { role: vault, tags: vault, when: "cert_management == 'vault'"}
  38. - { role: kubernetes/node, tags: node }
  39. - { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" }
  40. - { role: network_plugin, tags: network }
  41. environment: "{{proxy_env}}"