The actual 'edge' of our Edge Compute Network ('ECN') is composed of Agents. The other component (the Controllers) can be deployed anywhere, including cloud infrastructure, but Agents can only live on standalone hosts.
Create a template of agent.yaml like so:
echo "---
apiVersion: iofog.org/v2
kind: Agent
metadata:
name: zebra-1
spec:
host: 38.101.23.10
ssh:
user: foo
keyFile: ~/.ssh/id_rsa" > /tmp/agent.yamlMake sure to edit the host, ssh.user, and ssh.keyFile fields to correspond with the remote host we are deploying to.
Once we have edited the fields to our liking, go ahead and run:
iofogctl deploy -f /tmp/agent.yamlWe can use the following commands to verify the Agent is up and running:
iofogctl get agentsiofogctl describe agent zebra-1To get going with our own Microservices, start by looking at the tutorial on creating our own Microservices at Tutorial - Our First Microservice.