The example for implementation of n0stack API.
- Ubuntu 18.04 LTS (Bionic Beaver)
- Golang 1.11
- Requires Docker and docker-compose
cd deploy/api
docker-compose up
Check agent arguments with n0core serve agent -h.
- Require root user
- Perform the following processing
- Send self to
/var/lib/n0core/n0core.$VERSION with sftp
- Run
n0core local
docker run -it --rm -v $HOME/.ssh:/root/.ssh n0stack/n0stack \
/usr/bin/n0core deploy agent \
-i /root/.ssh/id_ecdsa \
root@$node_ip \
$agent_args
docker run -it --rm -v $HOME/.ssh:/root/.ssh n0stack/n0stack \
/usr/bin/n0core deploy agent \
-i /root/.ssh/id_ecdsa \
root@$node_ip \
--advertise-address=$node_ip \
--node-api-endpoint=$api_ip:20180 \
--location=////1
- Require root user
- Perform the following processing
- If n0core service is started, stop n0core service.
- Create symbolic link from self to
/usr/bin/n0core
- Generate systemd unit file and start systemd service
bin/n0core install agent -a "$agent_args"
| Features |
Yes / No |
| Redundancy |
No |
| Scalability |
Yes |
| Features |
Yes / No |
| Redundancy |
No |
| Scalability |
Yes |
| Features |
Yes / No |
| Redundancy |
No |
| Scalability |
No (for each network) |
