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.

40 lines
575 B

  1. node1 ansible_ssh_host={{gce.instance_data[0].public_ip}}
  2. node2 ansible_ssh_host={{gce.instance_data[1].public_ip}}
  3. {% if mode is defined and mode in ["separate", "ha"] %}
  4. node3 ansible_ssh_host={{gce.instance_data[2].public_ip}}
  5. {% endif %}
  6. {% if mode is defined and mode == "separate" %}
  7. [kube-master]
  8. node1
  9. [kube-node]
  10. node2
  11. [etcd]
  12. node3
  13. {% elif mode is defined and mode == "ha" %}
  14. [kube-master]
  15. node1
  16. node2
  17. [kube-node]
  18. node3
  19. [etcd]
  20. node2
  21. node3
  22. {% else %}
  23. [kube-master]
  24. node1
  25. [kube-node]
  26. node2
  27. [etcd]
  28. node1
  29. {% endif %}
  30. [k8s-cluster:children]
  31. kube-node
  32. kube-master