mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 09:38:12 -03:30
Add native Vagrant support
This allows you to simply run `vagrant up` to get a 3 node HA cluster. * Creates a dynamic inventory and uses the inventory/group_vars/all.yml * commented lines in inventory.example so that ansible doesn't try to use it. * added requirements.txt to give easy way to install ansible/ipaddr * added gitignore files to stop attempts to save unwated files * changed `Check if kube-system exists` to `failed_when: false` instead of `ignore_errors`
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
[kube-master]
|
||||
node1 ansible_ssh_host=10.99.0.26
|
||||
node2 ansible_ssh_host=10.99.0.27
|
||||
|
||||
[etcd]
|
||||
node1 ansible_ssh_host=10.99.0.26
|
||||
node2 ansible_ssh_host=10.99.0.27
|
||||
node3 ansible_ssh_host=10.99.0.4
|
||||
|
||||
[kube-node]
|
||||
node2 ansible_ssh_host=10.99.0.27
|
||||
node3 ansible_ssh_host=10.99.0.4
|
||||
node4 ansible_ssh_host=10.99.0.5
|
||||
node5 ansible_ssh_host=10.99.0.36
|
||||
node6 ansible_ssh_host=10.99.0.37
|
||||
|
||||
[paris]
|
||||
node1 ansible_ssh_host=10.99.0.26
|
||||
node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
|
||||
node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
|
||||
|
||||
[new-york]
|
||||
node2 ansible_ssh_host=10.99.0.27
|
||||
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]
|
||||
kube-node
|
||||
kube-master
|
||||
#[kube-master]
|
||||
#node1 ansible_ssh_host=10.99.0.26
|
||||
#node2 ansible_ssh_host=10.99.0.27
|
||||
#
|
||||
#[etcd]
|
||||
#node1 ansible_ssh_host=10.99.0.26
|
||||
#node2 ansible_ssh_host=10.99.0.27
|
||||
#node3 ansible_ssh_host=10.99.0.4
|
||||
#
|
||||
#[kube-node]
|
||||
#node2 ansible_ssh_host=10.99.0.27
|
||||
#node3 ansible_ssh_host=10.99.0.4
|
||||
#node4 ansible_ssh_host=10.99.0.5
|
||||
#node5 ansible_ssh_host=10.99.0.36
|
||||
#node6 ansible_ssh_host=10.99.0.37
|
||||
#
|
||||
#[paris]
|
||||
#node1 ansible_ssh_host=10.99.0.26
|
||||
#node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
|
||||
#node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
|
||||
#
|
||||
#[new-york]
|
||||
#node2 ansible_ssh_host=10.99.0.27
|
||||
#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]
|
||||
#kube-node
|
||||
#kube-master
|
||||
|
||||
Reference in New Issue
Block a user