Enabling the Container Deployment Capabilities
The container deployment capability is an optional feature of the AtlasEdge. You can enable the corresponding capability item as required and restart the AtlasEdge for the configuration to take effect.
Syntax
- Run the cd AtlasEdge_installation_path/AtlasEdge/edge_work_dir/edge_om/bin command to go to the directory where the script file is stored. The following is an example:
cd /opt/middleware/AtlasEdge/edge_work_dir/edge_om/bin
- Run the following commands as required:
- ./site_ability_policy.sh disable_all --on: disables all capabilities.
- ./site_ability_policy.sh allow op1 op2 : enables the capabilities. For details about the optional parameters, see Table 1.
- ./site_ability_policy.sh -h (-h or --help): displays the help information about the main command.
- ./site_ability_policy.sh disable_all -h (or --help): displays the help information about the disable_all subcommand.
- ./site_ability_policy.sh allow -h (or --help): displays the help information about the allow subcommand.
Parameter |
Description |
|---|---|
--create_container |
Enables the capability for container deployment. |
- During an upgrade, if the preceding capabilities are not set in an early version, all of them are enabled by default in the new version to ensure service continuity. If capabilities are set, retain the configurations.
- If the factory settings are restored, the previous configured capabilities are cleared and restored to the disabled state by default. You need to reconfigure them.
Examples
- You must run the site_ability_policy.sh command as the root user.
- After running the command, restart the AtlasEdge for the configuration to take effect.
For the Atlas 500 AI edge station (model 3000), run the cd /opt/middleware/AtlasEdge/edge_work_dir/edge_om/bin command to access the path of the script file.
- Example 1: Disable all capabilities.
./site_ability_policy.sh disable_all --on
Command output:
Write to config file success { "disable_all": true, "allow": { "create_container": false } }You need to restart the AtlasEdge for the configuration to take effect. That is, go to the /opt/middleware/AtlasEdge directory and run the ./run.sh restart command.
- Example 2: Enable the capability for container deployment.
./site_ability_policy.sh allow --create_container
Command output:
Write to config file success { "disable_all": false, "allow": { "create_container": true } }You need to restart the AtlasEdge for the configuration to take effect. That is, go to the /opt/middleware/AtlasEdge directory and run the ./run.sh restart command.