From f245d995cc34e629f31eb41930ae62071d74f3c2 Mon Sep 17 00:00:00 2001 From: Daniel Muehlbachler-Pietrzykowski Date: Sun, 24 Mar 2024 14:50:49 +0100 Subject: [PATCH] fix: fix postgresql resources --- core/cloudnative-pg/values.yaml | 6 +++--- home-assistant/home-assistant/extensions/postgresql.yaml | 3 +-- home-assistant/home-assistant/values.yaml | 9 +++++++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/core/cloudnative-pg/values.yaml b/core/cloudnative-pg/values.yaml index a9d0879f..443baf84 100644 --- a/core/cloudnative-pg/values.yaml +++ b/core/cloudnative-pg/values.yaml @@ -1,8 +1,8 @@ --- resources: requests: - cpu: 5m - memory: 80Mi + cpu: 3m + memory: 64Mi limits: cpu: 75m - memory: 128Mi + memory: 96Mi diff --git a/home-assistant/home-assistant/extensions/postgresql.yaml b/home-assistant/home-assistant/extensions/postgresql.yaml index 00127ec1..6695ef5d 100644 --- a/home-assistant/home-assistant/extensions/postgresql.yaml +++ b/home-assistant/home-assistant/extensions/postgresql.yaml @@ -17,7 +17,7 @@ spec: cpu: 10m memory: 96Mi limits: - cpu: 200m + cpu: 250m memory: 128Mi enableSuperuserAccess: true @@ -27,7 +27,6 @@ spec: ensure: present comment: Home Assistant login: true - disablePassword: true bootstrap: initdb: diff --git a/home-assistant/home-assistant/values.yaml b/home-assistant/home-assistant/values.yaml index 1627a277..ebbe2f12 100644 --- a/home-assistant/home-assistant/values.yaml +++ b/home-assistant/home-assistant/values.yaml @@ -24,6 +24,11 @@ controllers: secretKeyRef: name: home-assistant-gcp-credentials key: credentials.json + - name: POSTGRESQL_URI + valueFrom: + secretKeyRef: + name: home-assistant-postgresql-app + key: uri envFrom: - secretRef: @@ -34,10 +39,10 @@ controllers: resources: requests: cpu: 50m - memory: 768Mi + memory: 1024Mi limits: cpu: "1" - memory: 1280Mi + memory: 1536Mi initContainers: backup-restore: