Created
February 8, 2020 15:36
-
-
Save ykocaman/68d417722304212b0c59bf0dc9f6ec76 to your computer and use it in GitHub Desktop.
This file contains 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] | |
node1 ansible_host=91.91.91.91 ip=10.10.10.1 etcd_member_name=etcd1 | |
node2 ansible_host=92.92.92.92 ip=10.10.10.2 | |
node3 ansible_host=93.93.93.93 ip=10.10.10.3 | |
# 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] | |
node1 | |
# node2 | |
[etcd] | |
node1 | |
# node2 | |
# node3 | |
[kube-node] | |
node2 | |
node3 | |
# node4 | |
# node5 | |
# node6 | |
[calico-rr] | |
[k8s-cluster:children] | |
kube-master | |
kube-node | |
calico-rr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment