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.

32 lines
971 B

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. # node1 ansible_host=95.54.0.12 # ip=10.3.0.1 etcd_member_name=etcd1
  5. # node2 ansible_host=95.54.0.13 # ip=10.3.0.2 etcd_member_name=etcd2
  6. # node3 ansible_host=95.54.0.14 # ip=10.3.0.3 etcd_member_name=etcd3
  7. # node4 ansible_host=95.54.0.15 # ip=10.3.0.4 etcd_member_name=etcd4
  8. # node5 ansible_host=95.54.0.16 # ip=10.3.0.5 etcd_member_name=etcd5
  9. # node6 ansible_host=95.54.0.17 # ip=10.3.0.6 etcd_member_name=etcd6
  10. # ## configure a bastion host if your nodes are not directly reachable
  11. # bastion ansible_host=x.x.x.x ansible_user=some_user
  12. # [kube-master]
  13. # node1
  14. # node2
  15. # [etcd]
  16. # node1
  17. # node2
  18. # node3
  19. # [kube-node]
  20. # node2
  21. # node3
  22. # node4
  23. # node5
  24. # node6
  25. [k8s-cluster:children]
  26. kube-master
  27. kube-node