vm cluster

This commit is contained in:
BENEDEK László 2025-05-03 02:35:14 +02:00
parent 85ab740062
commit 860a3512d2
4 changed files with 16 additions and 12 deletions

View File

@ -37,12 +37,14 @@ Uses the `[first_master]` group from the *inventory* to select the first master.
### 5. Join other masters
Uses the `[other_masters]` group from the *inventory*.
Uses the `[other_masters]` group from the *inventory*.\
Do it **ONE-by-ONE**.
`ansible-playbook -i inventory -u root join-control-plane.yml`
### 6. Join workers
Uses the `[workers]` group from the *inventory*.
Uses the `[workers]` group from the *inventory*.\
Do it **ONE-by-ONE**.
`ansible-playbook -i inventory -u root join-workers.yml`

View File

@ -1 +1 @@
cluster_endpoint: cluster
cluster_endpoint: control.cluster

View File

@ -1,13 +1,13 @@
[nodes]
192.168.122.178
192.168.122.166
192.168.122.103
192.168.123.11
192.168.123.12
192.168.123.13
[first_master]
192.168.122.178
192.168.123.11
[other_masters]
192.168.122.166
192.168.122.103
; 192.168.123.12
192.168.123.13
[workers]

View File

@ -15,11 +15,13 @@ packages:
# networking
hostnames:
- ip: 192.168.122.178
name: cluster
- ip: 192.168.123.10
name: control.cluster
- ip: 192.168.123.1
name: bigboss
interface_name: lan0
gateway: 192.168.122.1
gateway: 192.168.123.1
nameservers:
- 192.168.1.1
- 1.1.1.1