vm cluster
This commit is contained in:
parent
85ab740062
commit
860a3512d2
@ -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`
|
||||
|
@ -1 +1 @@
|
||||
cluster_endpoint: cluster
|
||||
cluster_endpoint: control.cluster
|
12
inventory
12
inventory
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user