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.

36 lines
994 B

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. [etcd]
  17. # node1
  18. # node2
  19. # node3
  20. [kube-node]
  21. # node2
  22. # node3
  23. # node4
  24. # node5
  25. # node6
  26. [calico-rr]
  27. [k8s-cluster:children]
  28. kube-master
  29. kube-node
  30. calico-rr