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
952 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # ## Configure 'ip' variable to bind kubernetes services on a
  2. # ## different ip than the default iface
  3. # ## We should set etcd_member_name for etcd cluster. The node that is not a etcd member do not need to set the value, or can set the empty string value.
  4. [all]
  5. # node1 ansible_host=95.54.0.12 # ip=10.3.0.1 etcd_member_name=etcd1
  6. # node2 ansible_host=95.54.0.13 # ip=10.3.0.2 etcd_member_name=etcd2
  7. # node3 ansible_host=95.54.0.14 # ip=10.3.0.3 etcd_member_name=etcd3
  8. # node4 ansible_host=95.54.0.15 # ip=10.3.0.4 etcd_member_name=etcd4
  9. # node5 ansible_host=95.54.0.16 # ip=10.3.0.5 etcd_member_name=etcd5
  10. # node6 ansible_host=95.54.0.17 # ip=10.3.0.6 etcd_member_name=etcd6
  11. # ## configure a bastion host if your nodes are not directly reachable
  12. # [bastion]
  13. # bastion ansible_host=x.x.x.x ansible_user=some_user
  14. [kube_control_plane]
  15. # node1
  16. # node2
  17. # node3
  18. [etcd]
  19. # node1
  20. # node2
  21. # node3
  22. [kube_node]
  23. # node2
  24. # node3
  25. # node4
  26. # node5
  27. # node6