Help Center/ ServiceStage/ FAQs/ Continuous Delivery/ How Do I Add the Build Server Address to the GitLab Server Security Group?
Updated on 2024-08-13 GMT+08:00

How Do I Add the Build Server Address to the GitLab Server Security Group?

Background

If your GitLab service is built on the intranet of a public cloud, and the public network cannot be accessed directly, add the address of the build service to your GitLab server's security group to ensure that the build task can run.

Procedure

  1. Add the network segment where ServiceStage is located to the security group of the node where the GitLab private repository is located. The build service uses this IP address segment to access the GitLab service API.

    For details, see Adding a Security Group Rule.

    For details about the network segment where ServiceStage is located, contact technical support.

  2. Obtain the cluster name and node label for creating an image.

    Figure 1 Obtaining the cluster name and node label

  3. Obtain the EIP of the node in the cluster.

    • Application component building
      1. Log in to ServiceStage and choose Continuous Delivery > Build.
      2. Click the name of the target cluster to enter its details page.
      3. Click Nodes to obtain the EIP of the node in the cluster.
    • Job building
      1. Log in to ServiceStage and choose Continuous Delivery > Build.
      2. Select a build job and click a cluster to enter its details page.
      3. Click Nodes to obtain the EIP of the node in the cluster.

  4. Add the running node of the build image obtained in 3 to the security group of the node where the GitLab private repository is located. During the build, the build service accesses the GitLab service to pull the code.

    For details, see Adding a Security Group Rule.