From 7568fce9446e5755f465a23fee03177bb363d9bc Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Sun, 26 May 2024 03:08:06 -0300 Subject: [PATCH 1/2] Fixes StorageService Processor --- .../storage/storage-processor.template.yaml | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/template/storage/storage-processor.template.yaml b/template/storage/storage-processor.template.yaml index fd68e77..b603f1d 100644 --- a/template/storage/storage-processor.template.yaml +++ b/template/storage/storage-processor.template.yaml @@ -18,7 +18,6 @@ spec: containers: - name: storage-processor image: yoshiunfriendly/storage-hideyoshi.com:latest - command: ["./run-queue.sh"] args: ["-q"] imagePullPolicy: "Always" resources: @@ -29,7 +28,25 @@ spec: memory: "512Mi" cpu: "500m" env: - - name: REDIS_BASE_URL + - name: ALLOWED_ORIGINS + valueFrom: + secretKeyRef: + name: frontend-secret + key: backendUrl + + - name: EXPIRES_IN + valueFrom: + secretKeyRef: + name: backend-secret + key: accessTokenDuration + + - name: SERVER_PORT + valueFrom: + configMapKeyRef: + name: storage-config + key: storage_port + + - name: REDIS_HOST valueFrom: configMapKeyRef: name: redis-config @@ -47,9 +64,6 @@ spec: name: redis-secret key: redisPassword - - name: REDIS_URL - value: "redis://:$(REDIS_PASSWORD)@$(REDIS_BASE_URL):$(REDIS_PORT)/rq" - - name: STORAGE_TYPE valueFrom: secretKeyRef: From 8b4196c39fca113905d8258c55c89f69c3b9133b Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Fri, 28 Jun 2024 03:40:03 -0300 Subject: [PATCH 2/2] Reduces Number of PostgreSQL Cluster --- template/postgres/cn-cluster.template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/postgres/cn-cluster.template.yaml b/template/postgres/cn-cluster.template.yaml index 97f65ea..0ce2949 100644 --- a/template/postgres/cn-cluster.template.yaml +++ b/template/postgres/cn-cluster.template.yaml @@ -4,7 +4,7 @@ metadata: name: postgres-cn-cluster namespace: portfolio spec: - instances: 3 + instances: 1 primaryUpdateStrategy: unsupervised imageName: ghcr.io/cloudnative-pg/postgresql:14.10-18