From 047cd83e05a49ee5aa3cebdd51ab1c16b15b2da6 Mon Sep 17 00:00:00 2001 From: Steven Arnott Date: Mon, 30 Apr 2018 13:04:05 -0400 Subject: [PATCH] Add redis cache support for registry pod --- contrib/helm/harbor/templates/registry/registry-cm.yaml | 4 ++++ contrib/helm/harbor/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/contrib/helm/harbor/templates/registry/registry-cm.yaml b/contrib/helm/harbor/templates/registry/registry-cm.yaml index b1fd62997..32c8c739a 100644 --- a/contrib/helm/harbor/templates/registry/registry-cm.yaml +++ b/contrib/helm/harbor/templates/registry/registry-cm.yaml @@ -24,6 +24,10 @@ data: enabled: false delete: enabled: true + {{- if .Values.registry.redis }} + redis: +{{ toYaml .Values.registry.redis | indent 6 }} + {{- end }} http: addr: :5000 # set via environment variable diff --git a/contrib/helm/harbor/values.yaml b/contrib/helm/harbor/values.yaml index 072ab80cc..857d571a0 100644 --- a/contrib/helm/harbor/values.yaml +++ b/contrib/helm/harbor/values.yaml @@ -254,7 +254,12 @@ registry: # requests: # memory: 256Mi # cpu: 100m + ## Enable the redis caching in the registry + #redis: + # addr: "redis-host:6379" + # db: 2 + clair: enabled: true image: