mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
using hostnames in the inventory is more readable
This commit is contained in:
@@ -1,30 +1,31 @@
|
|||||||
[downloader]
|
[downloader]
|
||||||
10.99.0.26
|
node1 ansible_ssh_host=10.99.0.26
|
||||||
|
|
||||||
[kube-master]
|
[kube-master]
|
||||||
10.99.0.26
|
node1 ansible_ssh_host=10.99.0.26
|
||||||
10.99.0.27
|
node2 ansible_ssh_host=10.99.0.27
|
||||||
|
|
||||||
[etcd]
|
[etcd]
|
||||||
10.99.0.26
|
node1 ansible_ssh_host=10.99.0.26
|
||||||
10.99.0.27
|
node2 ansible_ssh_host=10.99.0.27
|
||||||
10.99.0.4
|
node3 ansible_ssh_host=10.99.0.4
|
||||||
|
|
||||||
[kube-node]
|
[kube-node]
|
||||||
10.99.0.27
|
node2 ansible_ssh_host=10.99.0.27
|
||||||
10.99.0.4
|
node3 ansible_ssh_host=10.99.0.4
|
||||||
10.99.0.5
|
node4 ansible_ssh_host=10.99.0.5
|
||||||
10.99.0.36
|
node5 ansible_ssh_host=10.99.0.36
|
||||||
10.99.0.37
|
node6 ansible_ssh_host=10.99.0.37
|
||||||
|
|
||||||
[paris]
|
[paris]
|
||||||
10.99.0.26
|
node1 ansible_ssh_host=10.99.0.26
|
||||||
10.99.0.4 local_as=xxxxxxxx
|
node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
|
||||||
10.99.0.5 local_as=xxxxxxxx
|
node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
|
||||||
|
|
||||||
[new-york]
|
[new-york]
|
||||||
10.99.0.36 local_as=xxxxxxxx
|
node2 ansible_ssh_host=10.99.0.27
|
||||||
10.99.0.37 local_as=xxxxxxxx
|
node5 ansible_ssh_host=10.99.0.36 local_as=xxxxxxxx
|
||||||
|
node6 ansible_ssh_host=10.99.0.37 local_as=xxxxxxxx
|
||||||
|
|
||||||
[k8s-cluster:children]
|
[k8s-cluster:children]
|
||||||
kube-node
|
kube-node
|
||||||
|
|||||||
Reference in New Issue
Block a user