Last active
May 9, 2019 19:12
-
-
Save farhany/ecceca736563a8ac5a863d3b7de8f904 to your computer and use it in GitHub Desktop.
inventory/mycluster/hosts.ini
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ## Configure 'ip' variable to bind kubernetes services on a | |
# ## different ip than the default iface | |
# ## 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. | |
[all] | |
ubu1 ansible_host=192.168.4.139 ip=192.168.4.139 etcd_member_name=etcd1 | |
ubu2 ansible_host=192.168.4.133 ip=192.168.4.133 etcd_member_name=etcd2 | |
ubu3 ansible_host=192.168.4.113 ip=192.168.4.113 etcd_member_name=etcd3 | |
# node4 ansible_host=95.54.0.15 # ip=10.3.0.4 etcd_member_name=etcd4 | |
# node5 ansible_host=95.54.0.16 # ip=10.3.0.5 etcd_member_name=etcd5 | |
# node6 ansible_host=95.54.0.17 # ip=10.3.0.6 etcd_member_name=etcd6 | |
# ## configure a bastion host if your nodes are not directly reachable | |
# bastion ansible_host=x.x.x.x ansible_user=some_user | |
[kube-master] | |
ubu1 | |
ubu2 | |
[etcd] | |
ubu1 | |
ubu2 | |
ubu3 | |
[kube-node] | |
ubu2 | |
ubu3 | |
# node4 | |
# node5 | |
# node6 | |
[k8s-cluster:children] | |
kube-master | |
kube-node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment