|
1 | | -apiVersion: postgres-operator.crunchydata.com/v1 |
2 | | -kind: PostgresCluster |
3 | | -metadata: |
4 | | - name: spicedb-postgres |
5 | | - annotations: |
6 | | - argocd.argoproj.io/sync-wave: "1" |
7 | | -spec: |
8 | | - postgresVersion: 18 |
9 | | - metadata: |
10 | | - annotations: |
11 | | - sidecar.istio.io/inject: "false" |
12 | | - instances: |
13 | | - - name: spicedb |
14 | | - replicas: 1 |
15 | | - metadata: |
16 | | - annotations: |
17 | | - sidecar.istio.io/inject: "false" |
18 | | - dataVolumeClaimSpec: |
19 | | - storageClassName: local-path |
20 | | - accessModes: |
21 | | - - "ReadWriteOnce" |
22 | | - resources: |
23 | | - requests: |
24 | | - storage: 1Gi |
25 | | - # NOTE: wait new version chart > 5.6.0 |
26 | | - # limit: |
27 | | - # storage: 2Gi |
28 | | - patroni: |
29 | | - dynamicConfiguration: |
30 | | - postgresql: |
31 | | - parameters: |
32 | | - track_commit_timestamp: "on" |
33 | | - # TODO: enable pgmonitor_bgw |
34 | | - shared_preload_libraries: pg_stat_statements,auto_explain,pgaudit |
35 | | - pgmonitor_bgw.dbname: postgres,spicedb |
36 | | - pgmonitor_bgw.role: "postgres" |
37 | | - # backups: |
38 | | - # pgbackrest: |
39 | | - # metadata: |
40 | | - # annotations: |
41 | | - # sidecar.istio.io/inject: "false" |
42 | | - # repos: |
43 | | - # - name: repo1 |
44 | | - # volume: |
45 | | - # volumeClaimSpec: |
46 | | - # storageClassName: local-path |
47 | | - # accessModes: |
48 | | - # - "ReadWriteOnce" |
49 | | - # resources: |
50 | | - # requests: |
51 | | - # storage: 1Gi |
52 | | - monitoring: |
53 | | - pgmonitor: |
54 | | - exporter: |
55 | | - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:latest |
56 | | - users: |
57 | | - - name: admin |
58 | | - databases: |
59 | | - - postgres |
60 | | - - spicedb |
61 | | - options: "SUPERUSER" |
62 | | - - name: spicedb |
63 | | - databases: |
64 | | - - spicedb |
65 | | - options: "SUPERUSER" |
| 1 | +# Legacy per-application PostgresCluster. |
| 2 | +# The live SpiceDB database now uses shortlink-postgres from the shared postgres-operator chart. |
| 3 | +# |
| 4 | +# apiVersion: postgres-operator.crunchydata.com/v1 |
| 5 | +# kind: PostgresCluster |
| 6 | +# metadata: |
| 7 | +# name: spicedb-postgres |
| 8 | +# annotations: |
| 9 | +# argocd.argoproj.io/sync-wave: "1" |
| 10 | +# spec: |
| 11 | +# postgresVersion: 18 |
| 12 | +# metadata: |
| 13 | +# annotations: |
| 14 | +# sidecar.istio.io/inject: "false" |
| 15 | +# instances: |
| 16 | +# - name: spicedb |
| 17 | +# replicas: 1 |
| 18 | +# metadata: |
| 19 | +# annotations: |
| 20 | +# sidecar.istio.io/inject: "false" |
| 21 | +# dataVolumeClaimSpec: |
| 22 | +# storageClassName: local-path |
| 23 | +# accessModes: |
| 24 | +# - "ReadWriteOnce" |
| 25 | +# resources: |
| 26 | +# requests: |
| 27 | +# storage: 1Gi |
| 28 | +# # NOTE: wait new version chart > 5.6.0 |
| 29 | +# # limit: |
| 30 | +# # storage: 2Gi |
| 31 | +# patroni: |
| 32 | +# dynamicConfiguration: |
| 33 | +# postgresql: |
| 34 | +# parameters: |
| 35 | +# track_commit_timestamp: "on" |
| 36 | +# # TODO: enable pgmonitor_bgw |
| 37 | +# shared_preload_libraries: pg_stat_statements,auto_explain,pgaudit |
| 38 | +# pgmonitor_bgw.dbname: postgres,spicedb |
| 39 | +# pgmonitor_bgw.role: "postgres" |
| 40 | +# # backups: |
| 41 | +# # pgbackrest: |
| 42 | +# # metadata: |
| 43 | +# # annotations: |
| 44 | +# # sidecar.istio.io/inject: "false" |
| 45 | +# # repos: |
| 46 | +# # - name: repo1 |
| 47 | +# # volume: |
| 48 | +# # volumeClaimSpec: |
| 49 | +# # storageClassName: local-path |
| 50 | +# # accessModes: |
| 51 | +# # - "ReadWriteOnce" |
| 52 | +# # resources: |
| 53 | +# # requests: |
| 54 | +# # storage: 1Gi |
| 55 | +# monitoring: |
| 56 | +# pgmonitor: |
| 57 | +# exporter: |
| 58 | +# image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:latest |
| 59 | +# users: |
| 60 | +# - name: admin |
| 61 | +# databases: |
| 62 | +# - postgres |
| 63 | +# - spicedb |
| 64 | +# options: "SUPERUSER" |
| 65 | +# - name: spicedb |
| 66 | +# databases: |
| 67 | +# - spicedb |
| 68 | +# options: "SUPERUSER" |
0 commit comments