GitLab on VPS - a1k89/Blog GitHub Wiki

Before: Set you domain gitlab.xxx.com A-zone to your IP address

  1. sudo apt-get update && sudo apt-get upgrade
  2. sudo apt-get install -y curl openssh-server ca-certificates perl
  3. curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
  4. sudo apt-get install gitlab-ee
  5. sudo vim /etc/gitlab/gitlab.rb
  6. Set external_uri to your host (http://gitlab.xxx.com)
  7. sudo gitlab-ctl reconfigure
  8. Next you may to go your https gitlab server (https://gitlab.xxx.com)
  9. sudo vim /etc/gitlab/initial_root_password. Copy password and enter to dashboard. Change current root password
  10. https://www.bitslovers.com/gitlab-ci-build-docker-image-and-push-to-ecr/

Далее, необходимо сделать подключение к кубернетис из гитлаба

  1. Заходим в консоль yc init
  2. Получаем креды yc managed-kubernetes cluster get-credentials <id кластера> --external и сохраняем