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.yaml
Make 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.yaml
We can use the following commands to verify the Agent is up and running:
iofogctl get agents
iofogctl describe agent zebra-1