Help Center> ServiceStage> FAQ> Continuous Delivery> How Do I Add the Build Server Address to the GitLab Server Security Group?

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 build task running.

Procedure

  1. Check the running node of the build image.

    1. Check the job definition to obtain the build cluster name and label information, as shown in the following figure.

    2. Choose Infrastructure > K8S Cluster . On the page that is displayed, obtain the elastic IP address of the node in the cluster, as shown in the following figure.

  2. Add the network segment 43.254.0.0/24 where ServiceStage is located to the security group of the node where the GitLab private repository resides. The build service uses this IP address segment to access the GitLab service API. For details about how to set a security group, see Adding a Security Group Rule.
  3. Add the running node of the build image obtained in 1 to the security group of the node where the GitLab private repository resides. During the build, the build service accesses the GitLab service to pull the code. For details, see 2.