Updated on 2024-09-23 GMT+08:00

Installing the Agent in a Huawei Cloud CCE Cluster

Scenario

Install the agent in a Huawei Cloud CCE cluster. After the configuration is complete, HSS automatically installs the agent on existing cluster nodes, installs the agent on new nodes when the cluster is scaled out, and uninstalls the agent from removed nodes when the cluster is scaled in.

Prerequisites

Before installing an agent for a CCE cluster, grant the CCEOperatePolicy permission to HSS. For details, see Granting Permissions on Associated Cloud Services.

Constraints and Limitations

  • Supported container runtime: Docker and Containerd
  • Supported cluster editions: CCE standard and Turbo editions
  • Node resource requirements: At least 50 MiB memory and 200m CPU should be available.
  • When an agent is installed in a cluster, HSS creates an HSS namespace in the cluster.

Installing the Agent in a Huawei Cloud CCE Cluster

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
  3. In the navigation pane, choose Installation & Configuration > Container Install & Config.
  4. On the Cluster tab page, click Install Container Agent. The Container Asset Access and Installation slide-out panel is displayed.
  5. Select CCE Cluster Installation and click Configure Now.
  6. Select a cluster and click Next.
  7. Configure agent parameters. For more information, see Table 1.

    Table 1 Agent parameters

    Parameter

    Description

    Configuration Rules

    Select an agent configuration rule.

    • Default Rule: Select this if the sock address of container runtime is a common address. The agent will be installed on nodes having no taints.
    • Custom: Select this rule if the sock address of your container runtime is not a common address or needs to be modified, or if you only want to install the agent on specific nodes.
    NOTE:
    • If the sock address of your container runtime is incorrect, some HSS functions may be unavailable after the cluster is connected to HSS.
    • You are advised to select all runtime types.

    (Optional) Advanced Configuration

    This parameter can be set if Custom is selected for Configuration Rules.

    Click to expand advanced configurations. The Enabling auto upgrade agent option is selected by default.

    • Enabling auto upgrade

      Configure whether to enable automatic agent upgrade. If it is enabled, HSS automatically upgrades the agent to the latest version between 00:00 to 06:00 every day to provide you with better services.

    • Node Selector Configuration

      Click the Reference Node Label to select the label of the nodes where the agent is to be installed. If this parameter is not specified, the agent will be installed on all nodes having no taints by default.

    • Tolerance Configuration

      If the taint tag is selected in Node Selector Configuration and the agent needs to be installed on the taint node, you can click Reference Node Taint and configure taint toleration.

  8. Click OK to start installing the HSS agent.
  9. In the cluster list, check the cluster status. If the cluster status is Running, the cluster is successfully connected to HSS.