-
Notifications
You must be signed in to change notification settings - Fork 3
/
values.yaml
161 lines (151 loc) · 3.57 KB
/
values.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# The pgxl image to use in all pods.
image: "pavouk0/postgres-xl:XL_10_R1_1-6-g68c378f-4-g7a65119"
# the home directory depends on the image and will determine teh
# data storeage location. the use posgtres must have access to this directory.
homedir: "/var/lib/postgresql"
# This is the env set that appends to all pods.
# will not affect the db configuration.
envs:
# The env set that appends to all pods.
# may affect the db configuration.
overrideEnvs:
# add extra labels to all pods.
extraLabels:
# general config.
config:
# The log level to use, accepts : ERROR, WARNING, INFO, DEBUG, DEBUG (1-5)
log_level: warning
# the port for managers (GTM and proxy)
managers_port: 6666
# the internal databsae port (postgres)
postgres_port: 5432
# the root user
postgres_user: postgres
# Append to the varius config files.
append:
# append to gtm.
gtm:
# append to all proxies.
poxy:
# append to all datanodes.
datanode:
# append to all coordinators.
coordinator:
# applies only to datanodes. Coordinators
# are not stored, and are only considered part
# of the cluster configuration.
WAL:
archive:
# enable wal archiving.
enable: false
# default value for versions.
# TODO: add WAL auto versioning on datanode init
# will allow restore points.
version: "unversioned"
# will default to storage.
storage_path: /wal_archive
# if dose not exist will default to empty folder.
pvc:
security:
# If exists will load all passwords from secrets.
passwords_secret_name:
# If passwords_secret_name exists, is the name of the secret
# key. Otherwise the password.
pg_password:
# Set the password authentication method
postgres_auth_type: md5
# Configuration for a job that is called when the database
# has finisjed loading.
on_load:
enabled: false
# the number of times the job will restart.
back_off_limit: 5
# if set, will deterime the startup script resources.
resources:
limits:
memory: "250Mi"
cpu: "250m"
# array of startup scripts, to be called whenever
# the database is loaded.
startup:
# array of init scripts to be called only when the
# the database is first initialized.
init:
# Example sccripts
###
# - name: create_database.sh
# script: |-
# psql -c "CREATE DATABASE tester;"
# export PGDATABASE="tester"
# - name: create_base_tables.sql
# script: |-
# CREATE SCHEMA test;
# CREATE TABLE test.lama as (SELECT 'the brown rabbit' as col_1);
# the coordinators external service.
service:
enabled: true
port: 5432
type: LoadBalancer
gtm:
resources:
limits:
memory: "2Gi"
cpu: "2"
pvc:
# addons
addContainers:
volumes:
volumeMounts:
# overrides
injectMainContainerYaml:
injectDepYaml:
injectSTSYaml:
proxies:
enabled: true
count: 1
thread_count: 3
resources:
limits:
memory: "1Gi"
cpu: "1"
# addons
addContainers:
volumes:
volumeMounts:
# overrides
injectMainContainerYaml:
injectSpecYaml:
injectSTSYaml:
coordinators:
count: 1
resources:
limits:
memory: "1Gi"
cpu: "1"
pvc:
# addons
addContainers:
volumes:
volumeMounts:
# overrides
injectMainContainerYaml:
injectSpecYaml:
injectSTSYaml:
datanodes:
count: 1
resources:
limits:
memory: "1Gi"
cpu: "1"
pvc:
# addons
addContainers:
volumes:
volumeMounts:
addVolumeClaims:
# overrides
injectMainContainerYaml:
injectSpecYaml:
injectSTSYaml: