From 7bb08e35e8d371c848c082b08519a7622a0368f1 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Sun, 21 Dec 2025 04:41:00 +0200 Subject: [PATCH] Add cred for cloudflared r2 --- charts/my-recipes-chart/templates/app-secrets.yaml | 6 ++++++ charts/my-recipes-chart/values.yaml | 7 +++++++ manifests/my-recipes/values.yaml | 8 ++++++++ 3 files changed, 21 insertions(+) diff --git a/charts/my-recipes-chart/templates/app-secrets.yaml b/charts/my-recipes-chart/templates/app-secrets.yaml index 19255b9..1620ba8 100644 --- a/charts/my-recipes-chart/templates/app-secrets.yaml +++ b/charts/my-recipes-chart/templates/app-secrets.yaml @@ -25,3 +25,9 @@ stringData: # Frontend URL for redirects FRONTEND_URL: {{ .Values.frontend.externalUrl | quote }} + + # R2 Backup Configuration + R2_ENDPOINT: {{ .Values.r2.endpoint | quote }} + R2_ACCESS_KEY: {{ .Values.r2.accessKey | quote }} + R2_SECRET_KEY: {{ .Values.r2.secretKey | quote }} + BACKUP_INTERVAL: {{ .Values.r2.backupInterval | quote }} diff --git a/charts/my-recipes-chart/values.yaml b/charts/my-recipes-chart/values.yaml index a87cafc..81e9519 100644 --- a/charts/my-recipes-chart/values.yaml +++ b/charts/my-recipes-chart/values.yaml @@ -143,6 +143,13 @@ email: smtpPassword: "agaanrhbbazbdytv" smtpFrom: "dvirlabs@gmail.com" +# R2 Backup Configuration +r2: + endpoint: "https://d4704b8c40b2f95b2c7bf7ee4ecc52f8.r2.cloudflarestorage.com" + accessKey: "" # Set this in my-recipes/values.yaml + secretKey: "" # Set this in my-recipes/values.yaml + backupInterval: "weekly" # Options: test (1 min), daily, weekly + # Ingress configuration ingress: enabled: false # Individual frontend/backend ingress resources handle routing instead diff --git a/manifests/my-recipes/values.yaml b/manifests/my-recipes/values.yaml index 438860e..5581812 100644 --- a/manifests/my-recipes/values.yaml +++ b/manifests/my-recipes/values.yaml @@ -22,6 +22,7 @@ backend: memory: 512Mi env: PYTHONUNBUFFERED: "1" + ENVIRONMENT: "production" ingress: enabled: true className: "traefik" @@ -129,6 +130,13 @@ email: smtpUser: "dvirlabs@gmail.com" smtpPassword: "agaanrhbbazbdytv" smtpFrom: "dvirlabs@gmail.com" + +# R2 Backup Configuration +r2: + endpoint: "https://d4704b8c40b2f95b2c7bf7ee4ecc52f8.r2.cloudflarestorage.com" + accessKey: "1997b1e48a337c0dbe1f7552a08631b5" # Replace with actual R2 access key + secretKey: "369694e39fedfedb254158c147171f5760de84fa2346d5d5d5a961f1f517dbc6" # Replace with actual R2 secret key + backupInterval: "weekly" # Ingress (top-level, disabled - use component-specific ingress instead) ingress: enabled: false