- Go to https://console.cloud.google.com/compute/instances and log in with your Google credentials.
- Click on "Create instance".
- Choose an appropriate name.
- Region should be the same as your k8s cluster.
- Choose machine type (better to have at least 4gb of memory).
- Select disk size (I used 20gb SSD) and system (my choice was Debian) in Boot disc.
- Allow https traffic.
- Connect to an instance using SSH (it's possible to open SSH just in browser window using GCP interface).
- Install the latest stable version of docker using official docker instruction
- Install using gitlab repository Don't forget to setup APT pinning (only Debian).
- Register a runner
sudo gitlab-ci-multi-runner register -n --url GITLAB_URL --registration-token "TOKEN" --executor docker --description "Name of docker runner" --docker-image "docker:latest" --docker-privileged
GITLAB_URL and TOKEN can be obtained on GitLab CI/CD runners settings for the group/project.
Check that runner is visible in CI/CD>Runners of your repository/group.