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.

31 lines
1.0 KiB

  1. ---
  2. - name: Install etcd
  3. hosts: etcd:kube_control_plane
  4. gather_facts: False
  5. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  6. environment: "{{ proxy_disable_env }}"
  7. roles:
  8. - { role: kubespray-defaults }
  9. - role: etcd
  10. tags: etcd
  11. vars:
  12. etcd_cluster_setup: true
  13. etcd_events_cluster_setup: "{{ etcd_events_cluster_enabled }}"
  14. when: etcd_deployment_type != "kubeadm"
  15. - name: Install etcd certs on nodes if required
  16. hosts: k8s_cluster
  17. gather_facts: False
  18. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  19. environment: "{{ proxy_disable_env }}"
  20. roles:
  21. - { role: kubespray-defaults }
  22. - role: etcd
  23. tags: etcd
  24. vars:
  25. etcd_cluster_setup: false
  26. etcd_events_cluster_setup: false
  27. when:
  28. - etcd_deployment_type != "kubeadm"
  29. - kube_network_plugin in ["calico", "flannel", "canal", "cilium"] or cilium_deploy_additionally | default(false) | bool
  30. - kube_network_plugin != "calico" or calico_datastore == "etcd"