To mitigate security risks, ContainerOS restricts direct system logon for untraceable operations. For administrative tasks such as troubleshooting and package installation, it provides an administrative container. This topic describes how to perform common administrative operations in ContainerOS, including logon, startup, shutdown, restart, and status query.
ContainerOS O&M methods
Compared with hosts, the administrative container is pre-installed with additional software packages, and allows package installations by using the software package manager YUM. The administrative container displays information about system processes, networks, and system configurations. Additionally, it provides commands to log on to the host from the container. This logon method is similar to logging on to the instance using Workbench, SSH, or VNC.
Starting from ContainerOS 3.5, Shell is removed from the host environment. Refer to the following table to choose how to maintain ContainerOS nodes:
Method | ContainerOS 3.5 and later | ContainerOS earlier than 3.5 |
Log on to the administrative container |
| Bind an SSH key pair in advance, run The host does not enable SSH by default. |
Log on to the host | After logging on to the administrative container, run the |
|
You can also maintain ContainerOS using the kubectl debug
command.
Logon methods for administrative containers in ContainerOS 3.5 and later
Category | Workbench (secret-free only) logon | VNC logon |
Prerequisites | None. The Cloud Assistant is pre-installed in the administrative container. | VNC logon requires password authentication. First, you must set the administrative container logon password through the Workbench (secret-free only) logon method. |
Procedure |
|
|
Host logon methods for ContainerOS earlier than 3.5
Category | Workbench (secret-free only) logon | VNC logon |
Prerequisites | Ensure that the node can access the Cloud Assistant service. | VNC logon requires password authentication. First, you must set the administrative container logon password through the Workbench (secret-free only) logon method. |
Procedure |
|
|