fix: move common cluster defaults to chart/values.yaml

This commit is contained in:
Jonas Juselius
2024-02-14 11:03:44 +01:00
parent 850fa1d152
commit a1d7c29c51
3 changed files with 16 additions and 26 deletions
+14 -3
View File
@@ -58,12 +58,23 @@ persistence:
# size: 10G
# storageClass: ""
# accessMode: ReadWriteMany
cluster:
enabled: true
instances: 2
backupEnabled: true
backupRetention: 60d
instances: 1
size: 5Gi
backupEnabled: false
backupRetention: 30d
imageName: ghcr.io/cloudnative-pg/postgis:15-3.3
bootstrap:
initdb:
postInitTemplateSQL:
- CREATE EXTENSION postgis;
- CREATE EXTENSION postgis_topology;
- CREATE EXTENSION fuzzystrmatch;
- CREATE EXTENSION postgis_tiger_geocoder;
- ALTER USER app WITH SUPERUSER;
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
+2 -10
View File
@@ -3,17 +3,9 @@ ingress:
cert-manager.io/cluster-issuer: letsencrypt-production
cluster:
backupEnabled: false
backupEnabled: true
backupRetention: 60d
instances: 2
imageName: ghcr.io/cloudnative-pg/postgis:15-3.3
bootstrap:
initdb:
postInitTemplateSQL:
- CREATE EXTENSION postgis;
- CREATE EXTENSION postgis_topology;
- CREATE EXTENSION fuzzystrmatch;
- CREATE EXTENSION postgis_tiger_geocoder;
- ALTER USER app WITH SUPERUSER;
resources:
limits:
-13
View File
@@ -6,19 +6,6 @@ ingress:
cert-manager.io/cluster-issuer: letsencrypt-production
atlantis.oceanbox.io/expose: global
cluster:
backupEnabled: false
instances: 1
imageName: ghcr.io/cloudnative-pg/postgis:15-3.3
bootstrap:
initdb:
postInitTemplateSQL:
- CREATE EXTENSION postgis;
- CREATE EXTENSION postgis_topology;
- CREATE EXTENSION fuzzystrmatch;
- CREATE EXTENSION postgis_tiger_geocoder;
- ALTER USER app WITH SUPERUSER;
resources:
limits:
cpu: 200m