mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 21:44:47 +00:00
Update api base path
This commit is contained in:
parent
f680b4907d
commit
918f1cb3c0
15
README.md
15
README.md
@ -80,14 +80,25 @@ scale it can call the outscaler to persist the right action
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -v -d '{"direction": true}' \
|
curl -v -d '{"direction": true}' \
|
||||||
http://localhost:8000/handle/infra_scale/docker
|
http://localhost:8000/v1/orbiter/handle/infra_scale/docker
|
||||||
```
|
```
|
||||||
Or if you prefer
|
Or if you prefer
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -v -X POST http://localhost:8000/handle/infra_scale/docker/up
|
curl -v -X POST http://localhost:8000/v1/orbiter/handle/infra_scale/docker/up
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can look at the list of services managed by orbiter:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -v -X GET http://localhost:8000/v1/orbiter/autoscaler
|
||||||
|
```
|
||||||
|
|
||||||
|
Look at the health to know if everything is working:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -v -X GET http://localhost:8000/v1/orbiter/halth
|
||||||
|
```
|
||||||
|
|
||||||
## Autodetect
|
## Autodetect
|
||||||
The autodetect mode starts when you don't specify any configuration file.
|
The autodetect mode starts when you don't specify any configuration file.
|
||||||
|
|||||||
@ -9,6 +9,6 @@ ps:
|
|||||||
docker service ls
|
docker service ls
|
||||||
docker stack ps stack
|
docker stack ps stack
|
||||||
scale-up:
|
scale-up:
|
||||||
curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/up
|
curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/up
|
||||||
scale-down:
|
scale-down:
|
||||||
curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/down
|
curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/down
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user