Skip to main content

potctl Resource Management

Deploying New Edge Compute Networks

potctl allows you to deploy an entire ECN from a single command and YAML file.

potctl deploy -f ecn.yaml

potctl also allows you to deploy indvidiual components of an ECN using the same command but different YAML files.

potctl deploy -f controlplane.yaml
potctl deploy -f controller.yaml
potctl deploy -f agent.yaml
potctl deploy -f agentConfig.yaml
potctl deploy -f application.yaml

potctl deploy commands are designed to be idempotent. Feel free to spam these commands as much as you like - the end result will always be the same. If anything goes wrong with your deployment, run the relevant deploy commands again and you should be good to go.

Specifications of the ioFog platform YAML types can be found here.

Specifications of the ioFog application YAML types can be found here.

Delete Components of Edge Compute Networks

We can delete resources that we have deployed to free up any associated infrastructure. Deleting resources like Control Planes, Controllers and Agents will cause any corresponding daemons to be terminated on the remote hosts.

potctl delete controller alpaca-1
potctl delete agent kiwi-1
potctl delete application health-care-app
potctl delete microservice health-case-ui

To undo a deletion, we can simply re-run the corresponding deploy command for the deleted resource.

If we want to wipe an entire ECN, we can run:

potctl delete all

or, if we also want to delete the namespace, we can run:

potctl delete namespace zoo-1 --force