2020-09-30 19:56:00 +00:00
|
|
|
---
|
|
|
|
droneci_autoscaler_version: latest
|
2020-10-21 20:19:37 +00:00
|
|
|
droneci_autoscaler_image: "drone/autoscaler:{{ droneci_autoscaler_version }}"
|
2020-09-30 19:56:00 +00:00
|
|
|
|
|
|
|
droneci_autoscaler_service_directory: /var/lib/docker/services/droneci_autoscaler
|
|
|
|
droneci_autoscaler_restart_policy: always
|
|
|
|
droneci_autoscaler_service_stopped: False
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_sshkey:description: >
|
|
|
|
# SSH private key that will by used by the autoscaler to connect to the agents.
|
|
|
|
# If you dont provide a private key, a keypair will be generated automatically.
|
|
|
|
# @end
|
|
|
|
# @var droneci_autoscaler_sshkey: $ "_unset_"
|
|
|
|
|
|
|
|
droneci_autoscaler_interval: 1m
|
|
|
|
|
|
|
|
droneci_autoscaler_logs_color: False
|
|
|
|
droneci_autoscaler_logs_pretty: True
|
|
|
|
droneci_autoscaler_logs_debug: False
|
|
|
|
|
|
|
|
droneci_autoscaler_watchtower_enabled: False
|
|
|
|
droneci_autoscaler_gc_enabled: False
|
|
|
|
|
|
|
|
droneci_autoscaler_pool_min: 0
|
|
|
|
droneci_autoscaler_pool_max: 1
|
|
|
|
droneci_autoscaler_pool_ttl: 50m
|
|
|
|
|
|
|
|
droneci_autoscaler_server_host: droneci
|
|
|
|
droneci_autoscaler_server_proto: http
|
|
|
|
droneci_autoscaler_server_token: myveryownsecret
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_db_type:description: >
|
|
|
|
# Database type to use (default sqlite). All other DB variable will ony be used
|
|
|
|
# it DB type is **not** sqlite.
|
|
|
|
droneci_autoscaler_db_type: sqlite
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_db_server:exaple: $ "localhost"
|
|
|
|
# @var droneci_autoscaler_db_port:exaple: $ "5432"
|
|
|
|
# @var droneci_autoscaler_db_name:exaple: $ "droneci_autoscaler"
|
|
|
|
# @var droneci_autoscaler_db_user:exaple: $ "pgdroneci"
|
|
|
|
# @var droneci_autoscaler_db_password:exaple: $ "secure"
|
|
|
|
# @var droneci_autoscaler_db_ssl_mode:exaple: $ "disable"
|
|
|
|
|
|
|
|
droneci_autoscaler_agent_token: myveryownsecret
|
2020-10-21 20:19:37 +00:00
|
|
|
droneci_autoscaler_agent_version: latest
|
|
|
|
droneci_autoscaler_agent_image: "drone/drone-runner-docker:{{ droneci_autoscaler_agent_version }}"
|
2020-09-30 19:56:00 +00:00
|
|
|
droneci_autoscaler_agent_concurrency: 2
|
|
|
|
droneci_autoscaler_agent_os: linux
|
|
|
|
droneci_autoscaler_agent_architecture: amd64
|
|
|
|
droneci_autoscaler_agent_volumes: []
|
|
|
|
droneci_autoscaler_agent_package_upgrade: False
|
|
|
|
|
|
|
|
droneci_autoscaler_instances: []
|
|
|
|
# @var droneci_autoscaler_instances:example: >
|
|
|
|
# droneci_autoscaler_instances:
|
2020-09-30 20:10:46 +00:00
|
|
|
# - name: scaler_amd64
|
2020-09-30 19:56:00 +00:00
|
|
|
# pool_max: 50
|
|
|
|
# pool_ttl: 120m
|
|
|
|
# agent_concurrency: 15
|
|
|
|
# agent_architecture: amd64
|
|
|
|
# sshkey: "dummy"
|
2020-10-01 08:34:39 +00:00
|
|
|
# api_host: "drone-amd64.example.com"
|
2020-09-30 19:56:00 +00:00
|
|
|
# provider_config:
|
|
|
|
# - name: DRONE_HETZNERCLOUD_DATACENTER
|
2020-10-01 08:55:33 +00:00
|
|
|
# value: fsn1-dc14
|
2020-09-30 19:56:00 +00:00
|
|
|
# - name: DRONE_HETZNERCLOUD_TOKEN
|
|
|
|
# value: abc123
|
|
|
|
# - name: DRONE_HETZNERCLOUD_IMAGE
|
|
|
|
# value: ubuntu-18.04
|
|
|
|
# - name: DRONE_HETZNERCLOUD_TYPE
|
|
|
|
# value:
|
|
|
|
# # SSH key id from hcloud API
|
|
|
|
# - name: DRONE_HETZNERCLOUD_SSHKEY
|
|
|
|
# value:
|
|
|
|
# - name: DRONE_HETZNERCLOUD_USERDATA_FILE
|
|
|
|
# value: /etc/scaler/userdata.yml
|
|
|
|
# @end
|
|
|
|
|
|
|
|
droneci_autoscaler_runner_volumes: []
|
|
|
|
droneci_autoscaler_runner_privileged: []
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_volumes:description: >
|
|
|
|
# Define required docker volumes. If you don't use sqlite you could remove the default volume.
|
|
|
|
# @end
|
|
|
|
# @var droneci_autoscaler_volumes:example: >
|
|
|
|
# droneci_autoscaler_volumes:
|
|
|
|
# # Instead of the name you could specify a path on the container host system,
|
|
|
|
# # but you also have to enable bind mount for this volume
|
|
|
|
# - name: data
|
|
|
|
# # target location inside the container
|
|
|
|
# dest: /var/lib/drone_autoscaler
|
|
|
|
# # enable bind mount, if false volume will be configured as named volume
|
|
|
|
# # keep in mind you MUST set bind in any case
|
|
|
|
# bind: True
|
|
|
|
# @end
|
|
|
|
droneci_autoscaler_volumes:
|
|
|
|
- name: data
|
|
|
|
dest: /var/lib/drone_autoscaler
|
|
|
|
bind: False
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_memory_limit:example: $ "512m"
|
|
|
|
# @var droneci_autoscaler_memory_limit: $ "_unset_"
|
|
|
|
# @var droneci_autoscaler_memory_reservation:example: $ "256m"
|
|
|
|
# @var droneci_autoscaler_memory_reservation: $ "_unset_"
|
|
|
|
|
|
|
|
# @var droneci_autoscaler_networks:example: >
|
|
|
|
# droneci_autoscaler_networks:
|
|
|
|
# - name: default
|
|
|
|
# # optional network driver, defaults to 'bride'
|
|
|
|
# driver: host
|
|
|
|
# @end
|
|
|
|
droneci_autoscaler_networks:
|
|
|
|
- name: droneci_default
|
|
|
|
external: True
|
|
|
|
|
2020-10-01 08:34:39 +00:00
|
|
|
# @var droneci_autoscaler_exposed_ports: $ "_unset_"
|
|
|
|
# @var droneci_autoscaler_exposed_ports:example: >
|
|
|
|
# droneci_autoscaler_exposed_ports:
|
|
|
|
# - "8080:8080"
|
|
|
|
# @end
|
|
|
|
|
2020-09-30 19:56:00 +00:00
|
|
|
droneci_autoscaler_networks_applied:
|
|
|
|
- droneci_default
|