Deploying Containerized Applications
Function
Deploys containerized applications with specific IDs in batches to one or more node groups with a specified ID array. During application deployment, pay attention to the remaining available resources of edge nodes. If the resources of online nodes (nodes in the ready state) in a node group do not meet the requirements for containerized application deployment, containerized applications will fail to be deployed to the corresponding node group.
- If a containerized application is successfully deployed using MEF Center, the daemonset resource of the containerized application in Kubernetes is successfully created. To check whether an MEF Edge-based containerized application is running, you need to query the application instance.
- MindEdge Framework checks the CPU, memory, and NPU resources of nodes based on the requirements of containerized applications. You need to ensure that other types of container resources are sufficient.
- The resource restrictions of MindEdge Framework take effect only on nodes in the ready state.
Syntax
Operation type: POST
URL: https://{ip}:{port}/edgemanager/v1/app/deployment
Request header:
Content-Type: application/json
Request message body:
{
"appID": AppId,
"nodeGroupIds": [NodeGroupId]
}
Request Parameters
Parameter |
Type |
Description |
Value |
|---|---|---|---|
appID |
Mandatory |
Application ID |
The value is an integer ranging from 1 to 2^32-1. The application ID must exist. |
nodeGroupIds |
Mandatory |
List of node group IDs |
Array with a length ranging from 1 to 1024. The node group ID must be unique. |
Usage Example
Request:
POST https://10.10.10.10:30035/edgemanager/v1/app/deployment
Request message body:
{
"appID": 1,
"nodeGroupIds": [
1,2
]
}
{
"status":"00000000",
"msg":"success"
}
Response status code: 200
Output Description
Parameter |
Type |
Description |
|---|---|---|
status |
String |
Error code |
msg |
String |
Description |
data |
Object |
Batch operation result. If all batch operations are successful, this parameter is not returned. |
Parameter |
Type |
Description |
|---|---|---|
successIDs |
Array |
ID of the node group that is successfully deployed. |
failedInfos |
Hash table. The key and value are character strings. |
key is the ID of the node group that fails to be deployed, and value is the failure cause. |