harbor/make/common/templates/clair/config.yaml
Daniel Jiang 733a89dea2 Enable configuring the interval of clair updaters
To mitigate the impact we saw in the updater issues in clair, this
commit enable configuring the interval, include disabling the updaters
of clair.
2018-07-26 16:27:23 +08:00

26 lines
632 B
YAML

clair:
database:
type: pgsql
options:
source: postgresql://$username:$password@$host:$port/$dbname?sslmode=disable
# Number of elements kept in the cache
# Values unlikely to change (e.g. namespaces) are cached in order to save prevent needless roundtrips to the database.
cachesize: 16384
api:
# API server port
port: 6060
healthport: 6061
# Deadline before an API request will respond with a 503
timeout: 300s
updater:
interval: ${interval}h
notifier:
attempts: 3
renotifyinterval: 2h
http:
endpoint: http://ui:8080/service/notifications/clair