mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-29 05:47:31 +02:00
5a07d55859
Add redis cache support for registry pod
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: "{{ template "harbor.fullname" . }}-registry"
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 4 }}
|
|
data:
|
|
config.yml: |+
|
|
version: 0.1
|
|
log:
|
|
level: {{ .Values.registry.logLevel }}
|
|
fields:
|
|
service: registry
|
|
storage:
|
|
{{- if .Values.registry.objectStorage }}
|
|
{{ toYaml .Values.registry.objectStorage | indent 6 }}
|
|
{{- else }}
|
|
filesystem:
|
|
rootdirectory: /var/lib/registry
|
|
{{- end }}
|
|
cache:
|
|
layerinfo: inmemory
|
|
maintenance:
|
|
uploadpurging:
|
|
enabled: false
|
|
delete:
|
|
enabled: true
|
|
{{- if .Values.registry.redis }}
|
|
redis:
|
|
{{ toYaml .Values.registry.redis | indent 6 }}
|
|
{{- end }}
|
|
http:
|
|
addr: :5000
|
|
# set via environment variable
|
|
# secret: placeholder
|
|
debug:
|
|
addr: localhost:5001
|
|
auth:
|
|
token:
|
|
issuer: harbor-token-issuer
|
|
realm: "https://{{ .Values.externalDomain }}/service/token"
|
|
rootcertbundle: /etc/registry/root.crt
|
|
service: harbor-registry
|
|
|
|
notifications:
|
|
endpoints:
|
|
- name: harbor
|
|
disabled: false
|
|
url: http://{{ template "harbor.fullname" . }}-ui/service/notifications
|
|
timeout: 3000ms
|
|
threshold: 5
|
|
backoff: 1s
|