-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Glonek
committed
Mar 1, 2023
1 parent
ccf954e
commit 1720102
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deploying a Rest Gateway | ||
|
||
## Create a test cluster with three nodes | ||
|
||
``` | ||
aerolab cluster create -n bob -c 3 | ||
``` | ||
|
||
## Insert test data into test namespace | ||
|
||
``` | ||
aerolab data insert -z 10000 -u 5 -n bob -m test | ||
``` | ||
|
||
## Deploy a rest gateway client | ||
|
||
``` | ||
aerolab client create rest-gateway -n myrest -C bob | ||
``` | ||
|
||
## Attach to the rest gateway machine and execute a scan | ||
|
||
``` | ||
aerolab attach client -n myrest | ||
$ curl http://localhost:8080/v1/scan/test | ||
``` | ||
|
||
## Notes | ||
|
||
* to adjust the seed IP or connect username or password at a later time, use the `aerolab client configure rest-gateway` command. Append `help` at the end of usage information | ||
* all settings can be adjusted, including the startup, by changing the startup script on the rest gateway machine, located at `/opt/autoload/01-restgw.sh` |