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
1.2 KiB

  1. Ansible variables
  2. ===============
  3. Inventory
  4. -------------
  5. The inventory is composed of 3 groups:
  6. * **kube-node** : list of kubernetes nodes where the pods will run.
  7. * **kube-master** : list of servers where kubernetes master components (apiserver, scheduler, controller) will run.
  8. Note: if you want the server to act both as master and node the server must be defined on both groups _kube-master_ and _kube-node_
  9. * **etcd**: list of server to compose the etcd server. you should have at least 3 servers for failover purposes.
  10. Below is a complete inventory example:
  11. ```
  12. ## Configure 'ip' variable to bind kubernetes services on a
  13. ## different ip than the default iface
  14. node1 ansible_ssh_host=95.54.0.12 # ip=10.3.0.1
  15. node2 ansible_ssh_host=95.54.0.13 # ip=10.3.0.2
  16. node3 ansible_ssh_host=95.54.0.14 # ip=10.3.0.3
  17. node4 ansible_ssh_host=95.54.0.15 # ip=10.3.0.4
  18. node5 ansible_ssh_host=95.54.0.16 # ip=10.3.0.5
  19. node6 ansible_ssh_host=95.54.0.17 # ip=10.3.0.6
  20. [kube-master]
  21. node1
  22. node2
  23. [etcd]
  24. node1
  25. node2
  26. node3
  27. [kube-node]
  28. node2
  29. node3
  30. node4
  31. node5
  32. node6
  33. [k8s-cluster:children]
  34. kube-node
  35. kube-master
  36. etcd
  37. ```
  38. Group vars
  39. --------------
  40. The main variables to change are located in the directory ```inventory/group_vars/all.yml```.