mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
make default host failover on install
This commit is contained in:
parent
5abca21b5e
commit
e220143ff3
1 changed files with 3 additions and 0 deletions
|
@ -162,6 +162,9 @@ configure_netclient() {
|
|||
nmctl host update $HOST_ID --default
|
||||
sleep 5
|
||||
nmctl node create_ingress netmaker $NODE_ID
|
||||
#setup failOver
|
||||
sleep 5
|
||||
curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}"
|
||||
set -e
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue