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.

50 lines
626 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. [vault]
  14. node3
  15. {% elif mode is defined and mode == "ha" %}
  16. [kube-master]
  17. node1
  18. node2
  19. [kube-node]
  20. node3
  21. [etcd]
  22. node2
  23. node3
  24. [vault]
  25. node2
  26. node3
  27. {% else %}
  28. [kube-master]
  29. node1
  30. [kube-node]
  31. node2
  32. [etcd]
  33. node1
  34. [vault]
  35. node1
  36. {% endif %}
  37. [k8s-cluster:children]
  38. kube-node
  39. kube-master