1
0
mirror of https://github.com/goharbor/harbor.git synced 2025-03-02 10:41:59 +01:00

Update the job service config yaml in the installation template

Signed-off-by: Steven Zou <szou@vmware.com>
This commit is contained in:
Steven Zou 2018-11-08 10:38:46 +08:00
parent e6d4c024ee
commit 093bf9fc8a
2 changed files with 19 additions and 7 deletions
make/common/templates/jobservice
src/jobservice

View File

@ -20,10 +20,22 @@ worker_pool:
#redis://[arbitrary_username:password@]ipaddress:port/database_index #redis://[arbitrary_username:password@]ipaddress:port/database_index
redis_url: $redis_url redis_url: $redis_url
namespace: "harbor_job_service_namespace" namespace: "harbor_job_service_namespace"
#Logger for job #Loggers for the running job
logger: job_loggers:
path: "/var/log/jobs" - name: "STD_OUTPUT" # logger backend name, only support "FILE" and "STD_OUTPUT"
level: "INFO" level: "INFO" # INFO/DEBUG/WARNING/ERROR/FATAL
archive_period: 14 #days - name: "FILE"
level: "INFO"
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
level: "INFO"
#Admin server endpoint #Admin server endpoint
admin_server: "http://adminserver:8080/" admin_server: "http://adminserver:8080/"

View File

@ -29,11 +29,11 @@ job_loggers:
- name: "FILE" - name: "FILE"
level: "DEBUG" level: "DEBUG"
settings: # Customized settings of logger settings: # Customized settings of logger
base_dir: "/Users/szou/tmp/job_logs" base_dir: "tmp/job_logs"
sweeper: sweeper:
duration: 1 #days duration: 1 #days
settings: # Customized settings of sweeper settings: # Customized settings of sweeper
work_dir: "/Users/szou/tmp/job_logs" work_dir: "/tmp/job_logs"
#Loggers for the job service #Loggers for the job service
loggers: loggers: