Deployment of GitLab CE
You can store Git repositories, perform code reviews, and run CI/CD pipelines with the GitLab CE service. For more information, see the official GitLab documentation.
The service runs on a single VM. A runner for CI/CD pipelines is already connected and available to all projects.
This guide will help you deploy the GitLab CE service on a VM in VK Cloud.
By using GitLab CE, you agree to the license agreements of Marketplace and GitLab CE.
To deploy the GitLab CE service in a VK Cloud project:
-
Configure the network so that the service is accessible from the Internet:
- Create a network with Internet access if you have not already done so.
- In the subnet settings where the VMs with the deployed service will be located, disable the Private DNS option.
-
Go to the Application Store section and click All solutions.
-
On the GitLab CE service card, click Learn more, then click Connect.
-
At the Server parameters step, specify the following:
- Availability zone: select the availability zone where the VM will run.
- Virtual machine type: select a preconfigured VM flavor. For a pilot deployment and a small team, choose a template with 4 CPU cores and 16 GB of RAM. CI/CD jobs run on the same VM, so if you actively use pipelines, choose a template with 8 CPU cores and 32 GB of RAM or more.
- Network: select the previously created network with Internet access and a subnet with Private DNS disabled.
- System disk type and System disk size: keep the default values.
- Disk type: select one of the disk types:
HDD,SSD, orHigh-IOPS SSD. - Data disk size: specify the required VM disk size in gigabytes. For a pilot deployment, 50 GB is enough. For a production workload, choose a value twice as large as the expected volume of repositories, artifacts, and images: before a version upgrade, the service stores a backup on this disk.
-
Click Next step.
-
At the Access step, specify the following:
- Domain, certificate, and public address: keep this option enabled to open GitLab from the Internet by domain name with a trusted certificate. The public IP address is billed separately. If you disable the option, the service will be available only on the internal network by the VM IP address with a self-signed certificate. You cannot change this option after deployment.
- Client network: enter
subnetif the computers and servers that work with GitLab are in the same subnet as the VM with the deployed service. If they are in a different subnet, specify its address, for example10.0.2.0/24. You can view the subnet address in your account. From the client network, Git over SSH and the Container Registry are available, and if Domain, certificate, and public address is disabled, the GitLab web interface is also available. - Container Registry: enable this option if you need to store Docker images in GitLab. The registry only works with a trusted certificate, so it requires Domain, certificate, and public address to be enabled.
-
Click Next step.
-
Review the infrastructure cost for deploying the service and click Connect tariff.
Deployment will start. Its status is shown in Application Store → My services. When the status changes to Active, you will receive an email with a one-time link to the access data.
-
Follow the link from the email and save the access data:
productURL: GitLab web interface address.gitlabUserandgitlabPassword: GitLab administrator username and password.registryURL: Container Registry address, if the registry is enabled.internalIPandexternalIP: internal and public VM IP addresses.sshUserandsshKey: username and private key for connecting to the VM over SSH.
-
Open
productURLin a browser and sign in to GitLab usinggitlabUserandgitlabPassword.