forked from ongres/stackgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalues.yaml
More file actions
350 lines (344 loc) · 8.62 KB
/
values.yaml
File metadata and controls
350 lines (344 loc) · 8.62 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# -- The container registry host (and port) where the images will be pulled from.
containerRegistry: quay.io
kind: SGCluster
cluster:
create: true
# restart: true
# restartRole:
restartClusterRole: cluster-admin
restartReducedImpact: true
restartPrimaryFirst: false
restartTimeout: 300
instances: 1
postgres:
version: 'latest'
#flavor:
#extensions:
# - name: timescaledb # The extension name
# publisher: com.ongres # Optional. The extension publisher
# version: "1.7.1" # Optional. The extension version or channel
# repository: https://extensions.stackgres.io/postgres/repository # Optional. The extension repository
# ssl:
# enabled: true
# certificateSecretKeySelector:
# name:
# key:
# privateKeySecretKeySelector:
# name:
# key:
replication:
mode: async
role: ha-read
# syncInstances: 1
# groups:
# - name: group-1
# role: HA_READ
# instances: 1
# replicateFrom:
# instance:
# sgCluster:
# external:
# host:
# port:
# storage:
# compression: lz4
# performance:
# downloadConcurrency: 1
# maxNetworkBandwidth:
# maxDiskBandwidth:
# sgObjectStorage:
# path:
# users:
# superuser:
# username:
# name:
# key:
# password:
# name:
# key:
# replication:
# username:
# name:
# key:
# password:
# name:
# key:
# authenticator:
# username:
# name:
# key:
# password:
# name:
# key:
sgInstanceProfile: size-s
postgresServices:
primary:
enabled: true
type: ClusterIP
# customPorts:
# - name:
# protocol:
# port:
# targetPort:
# appProtocol:
# nodePort:
replicas:
enabled: true
type: ClusterIP
# customPorts:
# - name:
# protocol:
# port:
# targetPort:
# appProtocol:
# nodePort:
# metadata:
# annotations:
# allResources:
# key: value
# clusterPods:
# key: value
# services:
# key: value
# primaryService:
# key: value
# replicasService:
# key: value
# labels:
# clusterPods:
# key: value
pods:
persistentVolume:
size: 5Gi
## If defined, storageClass: <storageClass>
## If set to "-", storageClass: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClass spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
disableConnectionPooling: false
disablePostgresUtil: false
disableEnvoy: false
# scheduling:
# nodeSelector:
# key: value
# nodeAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight:
# preference:
# - matchExpressions:
# - key:
# operator:
# values:
# - another-value
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key:
# operator:
# values:
# - another-value
# tolerations:
# - key:
# operator:
# value:
# effect:
# tolerationSeconds:
# customVolumes:
# - configMap:
# - downwardAPI:
# - emptyDir:
# - gitRepo:
# - glusterfs:
# - hostPath:
# - nfs:
# - projected:
# - secret:
# customContainers:
# customInitContainers:
# disableBackups: false
configurations:
sgPostgresConfig: postgresconf
sgPoolingConfig: pgbouncerconf
observability:
disableMetrics: false
# receiver: ""
prometheusAutobind: false
backups:
retention: 5
cronSchedule: "*/2 * * * *"
compression: lz4
performance:
uploadDiskConcurrency: 1
uploadConcurrency: 1
#maxNetworkBandwidth:
#maxDiskBandwidth:
# sgObjectStorage: objectstorage
# path: "demo/mypath"
useVolumeSnapshot: false
# volumeSnapshotClass:
# fastVolumeSnapshot: true
retainWalsForUnmanagedLifecycle: true
distributedLogs:
sgDistributedLogs: distributedlogs
retention: 7 days
#restore:
# initialData:
# restore:
# fromBackup:
# name:
# pointInTimeRecovery:
# restoreToTimestamp:
# downloadDiskConcurrency:
#managedSql:
# continueOnSGScriptError:
# continueOnError:
# scripts:
# - name: create-stackgres-user
# scriptFrom:
# secretKeyRef: # read the user from a Secret to maintain credentials in a safe place
# name: stackgres-secret-sqls-scripts
# key: create-stackgres-user.sql
# - name: create-stackgres-database
# script: |
# CREATE DATABASE stackgres WITH OWNER stackgres;
# - name: create-stackgres-schema
# database: stackgres
# scriptFrom:
# configMapKeyRef: # read long script from a ConfigMap to avoid have to much data in the helm releasea and the sgcluster CR
# name: stackgres-sqls-scripts
# key: create-stackgres-schema.sql
shardedCluster:
type: citus
database: citus
shards:
clusters: 2
instancesPerCluster: 1
sgInstanceProfile: size-s
configurations:
sgPostgresConfig: postgresconf
sgPoolingConfig: pgbouncerconf
pods:
persistentVolume:
size: 5Gi
instanceProfiles:
- name: size-s
cpu: "1"
memory: "2Gi"
- name: size-m
cpu: "2"
memory: "4Gi"
- name: size-l
cpu: "4"
memory: "8Gi"
- name: size-xl
cpu: "6"
memory: "16Gi"
- name: size-xxl
cpu: "8"
memory: "32Gi"
configurations:
create: true
postgresconfig:
create: true
postgresql.conf:
shared_buffers: '256MB'
random_page_cost: '1.5'
password_encryption: 'scram-sha-256'
checkpoint_timeout: '30'
poolingconfig:
create: true
pgBouncer:
pgbouncer.ini:
pool_mode: transaction
max_client_conn: '200'
default_pool_size: '50'
objectstorage:
create: false
s3: {}
# bucket: stackgres
# awsCredentials:
# secretKeySelectors:
# accessKeyId:
# name: awscredentials
# key: accesskey
# secretAccessKey:
# name: awscredentials
# key: secretkey
# region:
# storageClass:
s3Compatible: {}
# bucket: stackgres
# awsCredentials:
# secretKeySelectors:
# accessKeyId:
# name: minio
# key: accesskey
# secretAccessKey:
# name: minio
# key: secretkey
# region: k8s
# endpoint: minio.stackgres.svc
# enablePathStyleAddressing: true
# storageClass:
gcs: {}
# bucket: stackgres
# gcpCredentials:
# fetchCredentialsFromMetadataService: false
# secretKeySelectors:
# serviceAccountJSON:
# name: gcscredentials
# key: key
azureBlob: {}
# bucket: stackgres
# azureCredentials:
# secretKeySelectors:
# storageAccount:
# name: azureblobcredentials
# key: storageaccount
# accessKey:
# name: azureblobcredentials
# key: accesskey
distributedLogs:
enabled: false
create: true
persistentVolume:
size: 5Gi
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
postgresServices:
primary:
type: ClusterIP
# loadBalancerIP:
replicas:
enabled: true
type: ClusterIP
# loadBalancerIP:
# scheduling:
# nodeSelector:
# key: value
# tolerations:
# - key:
# operator:
# value:
# effect:
# tolerationSeconds:
# metadata:
# annotations:
# allResources:
# key: value
# pods:
# key: value
# services:
# key: value
#You should only set following options for non production environment
nonProductionOptions:
disableClusterPodAntiAffinity: false
disablePatroniResourceRequirements: false
disableClusterResourceRequirements: false
# enabledFeatureGates:
# - babelfish-flavor