Skip to content
Securely manage Docker, Swarm, Kubernetes and Podman clusters in the cloud, on-premise, and in the data center.
Secure app deployment and device management for your Industrial IoT, IoT and Edge devices.
Let Portainer's Managed Platform Services accelerate your containerization journey.
Manage all your Docker, Swarm, Kubernetes and Podman clusters from a single secure interface.
Portainer empowers Platform Engineering teams to deliver efficient, user-centric services.
Empower your business by adopting containerization the easy way with Portainer.
Deploy to and manage your fleet of remote devices centrally and securely.
Onboard, manage and deploy workloads across hundreds of devices securely with Portainer.
Deployment scenarios
Partner Solutions
blog-banner
Neil Cresswell, CEOFebruary 23, 20212 min read

Using the Portainer Edge Agent, Edge Groups, and Edge Stacks - part 2

Portainer has an amazing feature that lets you manage remote edge compute devices from a single centralized instance. You can manage for up to 25,000 x86 or ARM based edge devices running on unreliable or highly latent networks with support for Windows and Linux Operating Systems.

This is Part 2 of the Using the Portainer Edge Agent, Edge Groups, and Edge Stacks How-to. In part 1, we explain endpoint tags and adding endpoints using the edge agent (part one available here).

In this tutorial we will learn how to enable the Edge Compute features of Portaner and how to manage Edge with Edge Groups and Edge Stacks.

  1. Let's start by enabling the Edge Compute feature. Click on Settings:


    and scroll down to the the Enable edge compute features option:


  2. You will notice that now there is a new submenu on the left hand side of Portainer called Edge Compute:


  3. Let's start with Edge Groups. Please click on the option Edge Groups followed by Add Edge group:


  4. There are two ways of creating Edge Groups that you can name freely; Static and Dynamic:

    1. With Static you add endpoints manually by clicking on them:


    2. With Dynamic, endpoints are added to the Edge Group according to the Tags defined when these were added (please check my previous video of this How-to here).
    3. Dynamic groups has two ways of matching endpoints:
      1. Full match where the endpoints tags must match all Tags:


      2. Partial match where endpoints may have any of the Tags:


    4. Once you have your Edge Groups defined we can start deploying Stacks:


  5. To start deploying Stacks click on Edge Stacks and then on Add stack:


  6. There are four ways of adding Edge Stacks:
    1. via the Web editor where you can paste or type a docker-compose file;
    2. via the Upload option where you can upload a docker-compose.yml file;
    3. via the git Repository where you can download the docker-compose.yml online from github or compatible git repository, and;
    4. via the Template option where you can simply select a pre-defined Stack template.


  7. In our example I am going to deploy a mysql DB engine Edge Stack using the Web editor. Make sure to select a Name for your stack and select the Edge groups where you want to deploy the Edge Stack. One or Multiple Edge Groups can be selected. Once you finish adding your Edge Stack click on Deploy the stack:


  8. You will now see a Edge Stacks list page that will show the status of your deployment:
    1. Blue shows how many endpoints acknowledged the stack;
    2. Green shows how many endpoints successfully deployed the stack, and;
    3. Red shows how many endpoints failed to deploy the stack.


This is a simple and efficient way for you to manage your edge devices with Portainer. If you have any questions or comments, please drop them into the comments section below, or join us on our Slack channel.

Video walk through available here:


See for yourself, with a demo or free trial

Let us introduce you to a world of fast and easy app deployment, governance, and management in Docker/Swarm and Kubernetes. Join a group demo to see how Portainer Business helps to make Engineering and DevOps teams more accurate and efficient in container management.

BOOK A PORTAINER BUSINESS DEMO

avatar

Neil Cresswell, CEO

Neil brings more than twenty years’ experience in advanced technology including virtualization, storage and containerization.

COMMENTS

Related articles