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.

37 lines
1002 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 ansible_host=x.x.x.x ansible_user=some_user
  13. [kube-master]
  14. # node1
  15. # node2
  16. # node3
  17. [etcd]
  18. # node1
  19. # node2
  20. # node3
  21. [kube-node]
  22. # node2
  23. # node3
  24. # node4
  25. # node5
  26. # node6
  27. [calico-rr]
  28. [k8s-cluster:children]
  29. kube-master
  30. kube-node
  31. calico-rr