The Basics
This tutorial demonstrates the basics of application management and node management on a single node using the Edge Builder GUI. The following topics are covered:
- Initialize the Edge Builder server components
- Add a node
- Deploy an Application
- Controlling and removing an Application
- Remove a node
Initialize the Edge Builder server components
To initialize the Edge Builder server components and CLI, complete the following steps:
-
Set up the environment as described in Tutorials Setup
-
SSH into the master node:
vagrant ssh master
-
Start the Edge Builder server components using the following command:
When the server components are up, you should see all server components up and running via thesudo edgebuilder-server up -a 192.168.56.10
docker ps
command:vagrant@master:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 54216df43569 iotechsys/dev-eb-controller:1.2.0.dev "./entrypoint.sh" 19 seconds ago Up 16 seconds 0.0.0.0:8085->8085/tcp, :::8085->8085/tcp, 0.0.0.0:50000-50100->50000-50100/tcp, :::50000-50100->50000-50100/tcp, 0.0.0.0:1022->22/tcp, :::1022->22/tcp eb-controller 28e962d77a00 chronograf:1.8.8-alpine "./custom-entrypoint…" 21 seconds ago Up 19 seconds 0.0.0.0:8888->8888/tcp, :::8888->8888/tcp eb-chronograf 706d2b19acf4 postgres:alpine "./entrypoint.sh" 24 seconds ago Up 21 seconds 5432/tcp eb-db 83f4b4298be4 influxdb:1.8.1-alpine "./custom-entrypoint…" 24 seconds ago Up 21 seconds 0.0.0.0:8086->8086/tcp, :::8086->8086/tcp eb-influxdb c2981b5cbce7 portainer/portainer-ce:2.1.0-alpine "/portainer -H unix:…" 24 seconds ago Up 20 seconds 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp eb-portainer 5d4110072447 iotechsys/dev-eb-redis:1.2.0.dev "redis-server /etc/r…" 24 seconds ago Up 20 seconds 6379/tcp eb-redis 64901e67177b iotechsys/dev-eb-webssh:1.2.0.dev "wssh --address=0.0.…" 24 seconds ago Up 21 seconds 0.0.0.0:8989->8989/tcp, :::8989->8989/tcp eb-webssh 34811b289512 grafana/grafana:7.4.2 "/run.sh" 24 seconds ago Up 21 seconds 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp eb-grafana ac79f2182e86 iotechsys/dev-eb-salt-master:1.2.0.dev "/bin/sh -c 'sed -i …" 24 seconds ago Up 20 seconds 0.0.0.0:4505-4506->4505-4506/tcp, :::4505-4506->4505-4506/tcp, 0.0.0.0:8099->8099/tcp, :::8099->8099/tcp eb-salt-master 6583228fa467 kapacitor:1.5-alpine "/entrypoint.sh kapa…" 24 seconds ago Up 21 seconds 9092/tcp eb-kapacitor 6659e040296e vault:1.7.1 "./entrypoint.sh" 24 seconds ago Up 21 seconds 8200/tcp eb-vault
-
Login using the following credentials:
- Username:
iotech
- Password:
EdgeBuilder123
- Username:
-
Add a license using the drop down menu in the top right corner
- Select or drag and drop your license into the box provided, click Add
Add a node
In this section of the tutorial, we will add a node to Edge Builder. It is accessible on 192.168.56.11
.
To add an edge node, complete the following steps:
- On the Nodes page of the UI, click the Add button (+).
-
We will use ssh to add this node, enable the
ssh
toggle to enable the fields required -
Enter the following information
Name | Description | Labels | Node Address | Username | Password | Server Address |
---|---|---|---|---|---|---|
node1 | A demo node |
vm label1 |
192.168.56.11 | vagrant | vagrant | 192.168.56.10 |
- Click Create to add the node
- Wait until the node status is
Up
Deploy an Application
In this section we will create an app definition
and deploy an app
on node1.
- Select node1 and click on Deploy Apps in the actions dropdown menu
- Add an App Definition by clicking the
+
- Enter the following information
Name | Description | Type |
---|---|---|
SimpleWebServer | A Web Server | Docker-Compose |
- Paste the following docker-compose file into the box on the right:
version: "3"
services:
simple-webserver:
image: nginx
ports:
- 55555:80
volumes:
- /home/vagrant/src:/usr/share/nginx/html
- Click Create to add the App Definition
- Select the App Definition you just created and click Next
- Click Create to add the application to node1
Controlling and removing an Application
In this section we will start, restart and stop the application created above
- To start the application select it and press the start button in the action menu
- The same menu can be used to restart and stop the app
- Finally the app can be removed using the actions menu
Remove a node
This section will illustrate how an node can be removed
- On the Nodes page, select
node1
and click on delete in the actions menu