2018-11-15 04:09:57 +01:00
|
|
|
---
|
|
|
|
#Protocol used to serve
|
2020-02-11 06:47:55 +01:00
|
|
|
{% if internal_tls.enabled %}
|
|
|
|
protocol: "https"
|
|
|
|
|
|
|
|
https_config:
|
|
|
|
cert: "/etc/harbor/ssl/job_service.crt"
|
|
|
|
key: "/etc/harbor/ssl/job_service.key"
|
2018-11-15 04:09:57 +01:00
|
|
|
|
2020-02-11 06:47:55 +01:00
|
|
|
#Server listening port
|
|
|
|
port: 8443
|
|
|
|
{% else %}
|
|
|
|
protocol: "http"
|
2018-11-15 04:09:57 +01:00
|
|
|
|
|
|
|
#Server listening port
|
|
|
|
port: 8080
|
2020-02-11 06:47:55 +01:00
|
|
|
{% endif %}
|
2018-11-15 04:09:57 +01:00
|
|
|
|
|
|
|
#Worker pool
|
|
|
|
worker_pool:
|
|
|
|
#Worker concurrency
|
|
|
|
workers: {{max_job_workers}}
|
|
|
|
backend: "redis"
|
|
|
|
#Additional config if use 'redis' backend
|
|
|
|
redis_pool:
|
|
|
|
#redis://[arbitrary_username:password@]ipaddress:port/database_index
|
|
|
|
redis_url: {{redis_url}}
|
|
|
|
namespace: "harbor_job_service_namespace"
|
2019-05-22 13:25:06 +02:00
|
|
|
idle_timeout_second: 3600
|
2018-11-15 04:09:57 +01:00
|
|
|
#Loggers for the running job
|
|
|
|
job_loggers:
|
|
|
|
- name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
|
2019-05-15 04:28:52 +02:00
|
|
|
level: "{{level}}" # INFO/DEBUG/WARNING/ERROR/FATAL
|
2018-11-15 04:09:57 +01:00
|
|
|
- name: "FILE"
|
2019-05-15 04:28:52 +02:00
|
|
|
level: "{{level}}"
|
2018-11-15 04:09:57 +01:00
|
|
|
settings: # Customized settings of logger
|
|
|
|
base_dir: "/var/log/jobs"
|
|
|
|
sweeper:
|
|
|
|
duration: 1 #days
|
|
|
|
settings: # Customized settings of sweeper
|
|
|
|
work_dir: "/var/log/jobs"
|
|
|
|
|
|
|
|
#Loggers for the job service
|
|
|
|
loggers:
|
|
|
|
- name: "STD_OUTPUT" # Same with above
|
2019-05-15 04:28:52 +02:00
|
|
|
level: "{{level}}"
|