From 3d0b435466c9a43175954dc8cf15708cf6bfc695 Mon Sep 17 00:00:00 2001 From: Rob Brackett Date: Wed, 29 Mar 2023 21:47:19 -0700 Subject: [PATCH] Disable Redis cache As part of putting things to rest and saving costs, we are removing the Redis cache and relying on CloudFront to do enough caching for us to solve the same use case. See also https://github.com/edgi-govdata-archiving/web-monitoring-db/pull/1098. --- kubernetes/production/api-deployment.yaml | 11 ++++++----- kubernetes/production/import-worker-deployment.yaml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/kubernetes/production/api-deployment.yaml b/kubernetes/production/api-deployment.yaml index eecad90..d607f8f 100644 --- a/kubernetes/production/api-deployment.yaml +++ b/kubernetes/production/api-deployment.yaml @@ -95,11 +95,12 @@ spec: value: enabled - name: RAILS_SERVE_STATIC_FILES value: enabled - - name: REDIS_CACHE_URL - valueFrom: - secretKeyRef: - name: app-secrets - key: redis_cache_url + # Redis cache is disabled in favor of just relying on CloudFront. + # - name: REDIS_CACHE_URL + # valueFrom: + # secretKeyRef: + # name: app-secrets + # key: redis_cache_url - name: SECRET_KEY_BASE valueFrom: secretKeyRef: diff --git a/kubernetes/production/import-worker-deployment.yaml b/kubernetes/production/import-worker-deployment.yaml index dc92b8d..1d62002 100644 --- a/kubernetes/production/import-worker-deployment.yaml +++ b/kubernetes/production/import-worker-deployment.yaml @@ -86,11 +86,12 @@ spec: value: enabled - name: RAILS_SERVE_STATIC_FILES value: enabled - - name: REDIS_CACHE_URL - valueFrom: - secretKeyRef: - name: app-secrets - key: redis_cache_url + # Redis cache is disabled in favor of just relying on CloudFront. + # - name: REDIS_CACHE_URL + # valueFrom: + # secretKeyRef: + # name: app-secrets + # key: redis_cache_url - name: SECRET_KEY_BASE valueFrom: secretKeyRef: