From 563e8ae54fdc014624957205ceb0e35760c4c50c Mon Sep 17 00:00:00 2001 From: emelinda Date: Fri, 17 Apr 2026 12:10:34 +0300 Subject: [PATCH] Add memory resource requests to PostgreSQL configurations and remove resource limits from backend deployment in Notes app --- apps/comparisons/yc-k8s-test/postgresql.yaml | 3 +++ apps/contracts/yc-k8s-test/postgresql.yaml | 3 +++ apps/drawings/yc-k8s-test/postgresql.yaml | 3 +++ apps/notes/base/backend-deployment.yaml | 3 --- apps/notes/yc-k8s-test/postgresql.yaml | 3 +++ 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/comparisons/yc-k8s-test/postgresql.yaml b/apps/comparisons/yc-k8s-test/postgresql.yaml index f45515d..163ed2f 100644 --- a/apps/comparisons/yc-k8s-test/postgresql.yaml +++ b/apps/comparisons/yc-k8s-test/postgresql.yaml @@ -89,6 +89,9 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 6 + resources: + requests: + memory: 512Mi nodeSelector: dedicated: db tolerations: diff --git a/apps/contracts/yc-k8s-test/postgresql.yaml b/apps/contracts/yc-k8s-test/postgresql.yaml index 3ef1876..b04d0dc 100644 --- a/apps/contracts/yc-k8s-test/postgresql.yaml +++ b/apps/contracts/yc-k8s-test/postgresql.yaml @@ -56,6 +56,9 @@ spec: persistence: storageClass: local-path size: 20Gi + resources: + requests: + memory: 512Mi customLivenessProbe: exec: command: diff --git a/apps/drawings/yc-k8s-test/postgresql.yaml b/apps/drawings/yc-k8s-test/postgresql.yaml index 7fbaace..9c84f6b 100644 --- a/apps/drawings/yc-k8s-test/postgresql.yaml +++ b/apps/drawings/yc-k8s-test/postgresql.yaml @@ -89,6 +89,9 @@ spec: timeoutSeconds: 5 successThreshold: 1 failureThreshold: 6 + resources: + requests: + memory: 512Mi nodeSelector: dedicated: db tolerations: diff --git a/apps/notes/base/backend-deployment.yaml b/apps/notes/base/backend-deployment.yaml index 5e35478..c337154 100644 --- a/apps/notes/base/backend-deployment.yaml +++ b/apps/notes/base/backend-deployment.yaml @@ -78,9 +78,6 @@ spec: name: django-secret key: token resources: - limits: - cpu: "2" - memory: 1Gi requests: cpu: "1" memory: 512Mi diff --git a/apps/notes/yc-k8s-test/postgresql.yaml b/apps/notes/yc-k8s-test/postgresql.yaml index cbf1547..76ae62d 100644 --- a/apps/notes/yc-k8s-test/postgresql.yaml +++ b/apps/notes/yc-k8s-test/postgresql.yaml @@ -56,6 +56,9 @@ spec: persistence: storageClass: local-path size: 20Gi + resources: + requests: + memory: 512Mi customLivenessProbe: exec: command: