From 35a1ee3bdf178e79b48ba07e9e599ef5f783f941 Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Fri, 3 Nov 2023 14:26:31 +0100 Subject: [PATCH] update readme --- README.md | 79 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 2205a35..f8072a3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ```