Commit 16134fa3 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Emplea puerto por defecto para métricas, documenta

parent 8428af17
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -4,13 +4,15 @@ Deployment of a service to run GitLab CI/CD workloads

## Deployment

At first time, you must deploy `gitlab-runner-registrar` to configure and register a new runner instance. Then, deploy `gitlab-runner` (launching default deployment jobs) to receive jobs to run.
First time, you must deploy `gitlab-runner-registrar` service to configure and register a new runner instance. This action creates a configuration file into a shared volume, ready for `gitlab-runner` to use.

Then, deploy `gitlab-runner` (launching default-named deployment jobs) to start receiving jobs to run.

## Delete old runners

Service will try to unregister old version of same runner being registered, before creating the new one.

When runners name change, you must delete old registrations manually. Go to a running gitlab-runner container shell and execute one of the following commands:
When runners name change, you must delete old registrations manually. Go to a running `gitlab-runner` container shell and execute one of the following commands:

```sh
# Remove one runner, by GitLab instance URL and runner token
@@ -25,3 +27,11 @@ gitlab-runner verify --delete
# Remove all runners
gitlab-runner unregister --all-runners
```

## Environment isolation

This service is configured to work with `docker` executor. By default, your CI jobs will run in a Docker container launched at the host system of `gitlab-runner` service, sharing the same Docker daemon and resources (networks, volumes...).

In some use cases this is a desired behaviour, because you need local resources from host or it's local network.

To achieve isolation from host's Docker environment, you should use `dind` (docker-in-docker) as a service, applied to your CI job at `.gitlab-ci.yml`. This way, launched container cannot see resources at host system.
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ IMAGE_NAME=gitlab/gitlab-runner
IMAGE_TAG=alpine

CONFIG_FILE=/etc/gitlab-runner/config.toml
LISTEN_ADDRESS=0.0.0.0:9090
LISTEN_ADDRESS=:9252
CONCURRENT=3
REGISTRAR_LOG_LEVEL=info
LOG_LEVEL=warn