From c698f0beb304ee0f2de54ed07819b035d03e2ded Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 25 Nov 2023 12:33:26 +0800 Subject: [PATCH] fix(renovate): add PVC to cache trying to not hit rate limits lol, if not PVC then Redis is next --- kube/deploy/apps/renovate/app/hr.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kube/deploy/apps/renovate/app/hr.yaml b/kube/deploy/apps/renovate/app/hr.yaml index 9a184bd3..b50ad202 100644 --- a/kube/deploy/apps/renovate/app/hr.yaml +++ b/kube/deploy/apps/renovate/app/hr.yaml @@ -43,6 +43,7 @@ spec: RENOVATE_USERNAME: "tinfoild[bot]" RENOVATE_GIT_AUTHOR: "tinfoild <${SECRET_RENOVATE_GITHUB_APP_API_ID}+tinfoild[bot]@users.noreply.github.com>" RENOVATE_CONFIG_FILE: "/config/config.json" + RENOVATE_BASE_DIR: "/data" envFrom: - secretRef: name: "renovate-secrets" @@ -77,6 +78,16 @@ spec: main: enabled: false persistence: + data: + enabled: true + type: pvc + size: "10Gi" + storageClass: "block" + accessMode: "ReadWriteOnce" + retain: true + globalMounts: + - path: "/data" + readOnly: false # TODO: add either Redis or PVC to cache e.g. index.docker.io to alleviate rate limits tmp: enabled: true