Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Nov 3, 2023
1 parent 4f2a824 commit 35a1ee3
Showing 1 changed file with 50 additions and 29 deletions.
79 changes: 50 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The following parameters are supported:
| `clouds_config` | string | Optional. Path to clouds.yaml |
| `name` | string | Name of the Auto Scaling Group |
| `cluster_id` | string | Optional. UUID of the Senlin cluster. Overrides search by name. |
| `boot_time` | string | Optional. Wait some time since instance creation to complete boot up process. |

### Default connector config

Expand All @@ -41,41 +42,61 @@ openstack cluster policy attach --policy runner-aa-policy gitlab-runners
Example runner config
---------------------
```
[[runners]]
name = "manager"
url = "https://gitlab.com"
token = "token"
executor = "docker-autoscaler"
shell = "bash"
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
ServerAddress = "s3.foo.bar"
AccessKey = "access"
SecretKey = "secret"
BucketName = "cache"
[runners.docker]
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
shm_size = 0
network_mtu = 0
host = "unix:///run/user/1000/podman/podman.sock"
tls_verify = false
image = "quay.io/podman/stable"
privileged = true
#privileged = false
pull_policy = ["always", "always"]
[runners.autoscaler]
plugin = "fleeting-plugin-openstack"
capacity_per_instance = 1
max_use_count = 1
max_instances = 25
max_use_count = 10
max_instances = 10
plugin = "fleeting-plugin-openstack"
[runners.autoscaler.plugin_config]
name = "gitlab-runners"
cloud = "mycloud"
cloud = "runner"
# clouds_file = "/etc/openstack/clouds.yaml"
name = "senlin-cluster"
# cluster_id = {{ cluster_id|to_json }}
boot_time = "1m"
[runners.autoscaler.connector_config]
username = "fedora"
key_file = "/etc/gitlab-runner/id_rsa"
username = "fedora"
password = ""
key_path = "/etc/gitlab-runner/id_rsa"
use_static_credentials = true
keepalive = "30s"
timeout = "5m"
use_external_addr = false
[[runners.autoscaler.policy]]
idle_count = 4
idle_time = "15m0s"
```

Not working yet
---------------
```
Preparing instance... job=332687 project=179 runner=ksN2v_jPn
Dialing instance external-address=10.0.42.231 instance-id=08de3734-bd6c-4e9e-bec2-70ebbc38fa22 internal-address=10.0.42.231 job=332687 project=179 runner=ksN2v_jPn use-external-address=true
Dialing instance 08de3734-bd6c-4e9e-bec2-70ebbc38fa22... job=332687 project=179 runner=ksN2v_jPn
Instance 08de3734-bd6c-4e9e-bec2-70ebbc38fa22 connected job=332687 project=179 runner=ksN2v_jPn
Volumes manager is empty, skipping volumes cleanup job=332687 project=179 runner=ksN2v_jPn
ERROR: Failed to remove network for build error=networksManager is undefined job=332687 network= project=179 runner=ksN2v_jPn
WARNING: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": dialing environment connection: ssh: rejected: connect failed (open failed) (docker.go:826:0s) job=332687 project=179 runner=ksN2v_jPn
Will be retried in 3s ... job=332687 project=179 runner=ksN2v_jPn
```

While i can do a `ssh -i /etc/gitlab-runner/id_rsa fedora@10.0.42.231` without any problem.

```
# gitlab-runner version
Runtime platform arch=amd64 os=linux pid=1751 revision=853330f9 version=16.5.0
idle_count = 2
idle_time = "15m0s"
scale_factor = 0.0
scale_factor_limit = 0
```

0 comments on commit 35a1ee3

Please sign in to comment.