From 878ab18d5bd8a1f82f64e5678cc30cabcb3a2ee2 Mon Sep 17 00:00:00 2001 From: Masaki Yatsu Date: Thu, 13 Nov 2025 11:12:10 +0900 Subject: [PATCH] chore(postgres): set resource request and limit --- postgres/cnpg-values.yaml | 7 +++++++ postgres/justfile | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 postgres/cnpg-values.yaml diff --git a/postgres/cnpg-values.yaml b/postgres/cnpg-values.yaml new file mode 100644 index 0000000..2175a03 --- /dev/null +++ b/postgres/cnpg-values.yaml @@ -0,0 +1,7 @@ +resources: + requests: + cpu: 50m + memory: 128Mi + limits: + cpu: 100m + memory: 256Mi diff --git a/postgres/justfile b/postgres/justfile index fb9ee2f..b06b730 100644 --- a/postgres/justfile +++ b/postgres/justfile @@ -36,7 +36,8 @@ install-cnpg: @just add-helm-repo @helm upgrade --cleanup-on-fail --install cnpg cnpg/cloudnative-pg \ --version ${CNPG_CHART_VERSION} \ - -n ${CNPG_NAMESPACE} --create-namespace --wait + -n ${CNPG_NAMESPACE} --create-namespace --wait \ + -f cnpg-values.yaml # Uninstall CloudNativePG uninstall-cnpg: