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
|
### 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`
|
`ansible-playbook -i inventory -u root join-control-plane.yml`
|
||||||
|
|
||||||
### 6. Join workers
|
### 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`
|
`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]
|
[nodes]
|
||||||
192.168.122.178
|
192.168.123.11
|
||||||
192.168.122.166
|
192.168.123.12
|
||||||
192.168.122.103
|
192.168.123.13
|
||||||
|
|
||||||
[first_master]
|
[first_master]
|
||||||
192.168.122.178
|
192.168.123.11
|
||||||
|
|
||||||
[other_masters]
|
[other_masters]
|
||||||
192.168.122.166
|
; 192.168.123.12
|
||||||
192.168.122.103
|
192.168.123.13
|
||||||
|
|
||||||
[workers]
|
[workers]
|
||||||
|
@ -15,11 +15,13 @@ packages:
|
|||||||
|
|
||||||
# networking
|
# networking
|
||||||
hostnames:
|
hostnames:
|
||||||
- ip: 192.168.122.178
|
- ip: 192.168.123.10
|
||||||
name: cluster
|
name: control.cluster
|
||||||
|
- ip: 192.168.123.1
|
||||||
|
name: bigboss
|
||||||
|
|
||||||
interface_name: lan0
|
interface_name: lan0
|
||||||
gateway: 192.168.122.1
|
gateway: 192.168.123.1
|
||||||
nameservers:
|
nameservers:
|
||||||
- 192.168.1.1
|
- 192.168.1.1
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user