Deploying Containerized Applications
This section describes how to deploy containerized applications using RESTful APIs provided by MEF Center. For details, see Figure 1.
You are advised not to operate cluster resources (such as containerized applications) by running commands or calling APIs on the MEF Center node. Otherwise, the MEF Center environment may be abnormal.
Process Overview
Scenario |
Operation |
Description |
API Reference |
|---|---|---|---|
Edge node management |
Create a node group. |
Create a node group through RESTful APIs or use an existing node group. |
For details about the node management APIs, see Overview. |
(Optional) Query the list of nodes that are not managed. |
Before managing nodes, you can use RESTful APIs to query the list of nodes that are not managed and find the IDs of the MEF Edge nodes that are not managed. |
||
Manage nodes. |
Manage nodes through RESTful APIs. |
||
(Optional) Add a node to a node group. |
If groupIDs is not specified when a node is managed, you can use RESTful APIs to add the node to a specified node group. |
||
(Optional) Modify nodes. |
Modify the name and description of nodes through RESTful APIs. |
||
(Optional) Delete nodes. |
Delete nodes in batches through RESTful APIs. |
||
(Optional) Remove nodes from a node group. |
Use RESTful APIs to remove nodes from a specified node group to delete the pod of a single containerized application and uninstall the containerized application. |
||
Container image preparation |
Prepare a container image. |
MindEdge Framework can use containerized application images by using a Docker public image repository, a third-party image repository, or manually importing images using MEF Edge. When using an image repository, ensure that the network connection between the device where MEF Edge is installed and the image repository is normal and that the image repository is available.
NOTE:
When a containerized application is deployed, the image repository account and password delivered by a third-party image repository are used. The account and password are managed by the third party in a unified manner. |
|
Containerized application management |
Create a containerized application. |
Create a containerized application for a node group through RESTful APIs. |
For details about containerized application management APIs, see Containerized Application Management APIs.
NOTE:
If you deploy a containerized application that is not managed by MEF Center on a device node, the containerized application may fail to be deployed due to insufficient resources. |
(Optional) Query the containerized application list. |
Query the list of containerized applications to be deployed through RESTful APIs. |
||
Deploy a containerized application. |
Create a containerized application for a node group through RESTful APIs. |
||
(Optional) Query the list of deployed containerized applications. |
After containerized applications are deployed, you can use RESTful APIs to query the list of deployed containerized applications. |
||
(Optional) Update a containerized application. |
Update the deployed containerized applications through RESTful APIs. Currently, only the container image name and version can be updated. |
||
(Optional) Uninstall a containerized application. |
Uninstall containerized applications through RESTful APIs. |
||
(Optional) Delete a containerized application. |
Delete containerized applications through RESTful APIs. Only containerized applications that are not deployed can be deleted. For containerized applications that have been deployed, uninstall them first. |
For details about how to collect MEF Edge node logs using RESTful APIs provided by MEF Center, see Log Collection APIs. For details about how to log in to the device to view logs, see Viewing Log Information.
