-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory.yaml
78 lines (77 loc) · 2.48 KB
/
inventory.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
all:
hosts:
control-plane1:
wg_ip: 192.168.2.2
private_ip: 192.168.10.10
ansible_host: 192.168.10.10
ansible_ssh_private_key_file: '.vagrant/machines/control-plane1/libvirt/private_key'
# ansible_ssh_private_key_file: '.vagrant/machines/control-plane1/virtualbox/private_key'
# control-plane2:
# wg_ip: 192.168.2.3
# private_ip: 192.168.10.11
# ansible_host: 192.168.10.11
# ansible_ssh_private_key_file: '.vagrant/machines/control-plane2/libvirt/private_key'
# # ansible_ssh_private_key_file: '.vagrant/machines/control-plane2/virtualbox/private_key'
# control-plane3:
# wg_ip: 192.168.2.4
# private_ip: 192.168.10.12
# ansible_host: 192.168.10.12
# ansible_ssh_private_key_file: '.vagrant/machines/control-plane3/libvirt/private_key'
# # ansible_ssh_private_key_file: '.vagrant/machines/control-plane3/virtualbox/private_key'
worker1:
wg_ip: 192.168.2.5
private_ip: 192.168.10.30
ansible_host: 192.168.10.30
ansible_ssh_private_key_file: '.vagrant/machines/worker1/libvirt/private_key'
# ansible_ssh_private_key_file: '.vagrant/machines/worker1/virtualbox/private_key'
worker2:
wg_ip: 192.168.2.6
private_ip: 192.168.10.31
ansible_host: 192.168.10.31
ansible_ssh_private_key_file: '.vagrant/machines/worker2/libvirt/private_key'
# ansible_ssh_private_key_file: '.vagrant/machines/worker2/virtualbox/private_key'
nfs:
wg_ip: 192.168.2.1
private_ip: 192.168.10.20
ansible_host: 192.168.10.20
ansible_ssh_private_key_file: '.vagrant/machines/nfs/libvirt/private_key'
# ansible_ssh_private_key_file: '.vagrant/machines/nfs/virtualbox/private_key'
vars:
k8s_version: 1.24.2
k8s_pod_cidr: 10.32.0.0/12
control_plane_endpoint: 192.168.10.20
nfs_path: /nfs/export/www-data
nfs_server: 192.168.10.20
wireguard:
enabled: false
allowed_ips: 192.168.2.0/24
ansible_python_interpreter: /usr/bin/python3
ansible_user: 'vagrant'
ansible_port: 22
children:
control_plane:
hosts:
control-plane1:
# control-plane2:
# control-plane3:
workers:
hosts:
worker1:
worker2:
nodes:
children:
control_plane:
workers:
clients:
hosts:
control-plane1:
nfs:
nfs_servers:
hosts:
nfs:
loadbalancers:
hosts:
nfs:
wireguard_servers:
hosts:
nfs: