-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues-overrides-metacat-dev.yaml
More file actions
66 lines (57 loc) · 2.07 KB
/
values-overrides-metacat-dev.yaml
File metadata and controls
66 lines (57 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
## Example values overrides, for deploying Metacat's database on the NCEAS k8s cluster, and
## initializing it by cloning from an existing Metacat database.
##
## Typically, you would keep these overrides alongside your application's environment-specific
## values-overrides yaml file, so they are versioned together with your application.
##
## How to deploy a cluster with this example file:
##
## $ helm install <releasename> oci://ghcr.io/dataoneorg/charts/cnpg --version <version> \
## -f ./examples/values-overrides-metacat-dev.yaml
dbName: metacat
#dbUser: defaults to dbName if blank
resources:
requests:
cpu: 1
memory: 1Gi
limits:
cpu: 1
memory: 1Gi
init:
method: "pg_basebackup"
pg_basebackup:
source: "source-db"
## target database name and owner to create after cloning from the source
database: "metacat"
owner: "metacat" # Defaults to the value of the pg_basebackup.database key.
## Name of the secret containing the credentials for the owner of the user database that is
## being copied from the source cluster
secret:
name: "metacatbrooke-metacat-cnpg"
## Necessary if the source database was initialized with libc locale provider
localeProvider: libc
externalClusters:
- name: source-db
connectionParameters:
host: metacatbrooke-postgresql
user: metacat
dbname: metacat
sslmode: disable
password:
name: metacatbrooke-metacat-secrets
key: POSTGRES_PASSWORD
persistence:
size: 10Gi
replica:
enabled: true
source: "source-db"
postgresql:
parameters:
max_wal_senders: 16 # must match bitnami for replication to work
## metacat override to allow password auth:
pg_hba:
# TYPE DATABASE USER ADDRESS METHOD
- host metacat metacat 0.0.0.0/0 password
- host metacat metacat ::0/0 password
- host all postgres 0.0.0.0/0 password
- host all postgres ::0/0 password