Updated on 2024-11-21 GMT+08:00

Self-hosted Resource Pool Scenario Introduction

Self-hosted Resource Pool

This section introduces how to add your own hosts to the self-hosted resource pool.

Only specific users at the Mexico site can use self-hosted resource pools.

Creating a Self-hosted Resource Pool

  1. Create an ECS.

    1. Go to the console, choose Service List > Compute > Elastic Cloud Server. The Elastic Cloud Server page is displayed.
    2. Click Buy ECS on the ECS console.
    3. On the ECS configuration page, set parameters as prompted.
    4. Click Submit

      You can apply for an EIP during ECS creation or you can also apply for it anytime by referring to (Optional) Applying for an EIP.

      Configure a security group for the created ECS by referring to Security Configuration.

      Stop idle ECSs to avoid waste and unnecessary billing.

  2. Obtain the AK/SK.

    1. On the console, click the username in the upper right corner and select My Credentials from the drop-down list.
    2. Choose Access Key > Create Access Key.
    3. Click OK to save the AK/SK.

  3. Create an agent pool.

    1. On the CodeArts homepage, click the account name in the upper right corner and click Account Settings.
    2. Choose Agent Management > Agent Pool > Create Pool, enter a Pool Name, set Pool Type to LINUX_DOCKER, and click Save.

  4. Create an agent.

    1. Click the created pool and click Create Agent. Enable Install a JDK automatically, Install Git automatically, and Install Docker automatically.
    2. Enter the AK/SK obtained in 2, and select I have read and agree to the Privacy Statement and CodeArts Service Statement and understand that related configurations and authentication information will be used by CodeArts to perform operations with this service.
    3. Click Generate Command to automatically generate the Octopus Agent command for installing the agent, then click Copy Command.

  5. Run the Octopus Agent command.

    1. Log in to the ECS created in 1 and run the copied command in /root directory. The following information is displayed:
      End Install Octopus Agent,Agent output logs have been printed to [ /opt/octopus-agent/logs/octopus-agent.log ]
    2. Check the status of the installed agent on the Agents page. If the status is Idle, the installation is successful.

      If the agent status is Offline, delete the agent and repeat steps 3 to 5.