Compare commits

..

25 Commits

Author SHA1 Message Date
williamp b90016939f Merge pull request 'chore(deps): update helm release plugin-barman-cloud to v0.6.0' (#11) from renovate/plugin-barman-cloud-0.x into main
Reviewed-on: #11
2026-04-15 14:40:09 +00:00
renovate-bot 469b288842 chore(deps): update helm release plugin-barman-cloud to v0.6.0 2026-04-14 09:00:16 +00:00
williamp aea7eefadd Merge pull request 'chore(deps): update helm release cloudnative-pg to v0.28.0' (#10) from renovate/cloudnative-pg-0.x into main
Reviewed-on: #10
2026-04-01 22:40:32 +00:00
renovate-bot f84b13bc14 chore(deps): update helm release cloudnative-pg to v0.28.0 2026-04-01 14:00:18 +00:00
williamp 29aee36c72 postgres: use require sslmode 2026-03-17 16:17:53 -04:00
williamp f436364d7a postgres: fix ssl config 2026-03-17 16:16:06 -04:00
williamp 08ad1f4096 postgres: set sslmode for external cluster 2026-03-17 16:02:57 -04:00
williamp b3c91031fb postgres: add streaming replica 2026-03-17 15:58:24 -04:00
williamp 0b8f3f8e50 postgres: proper replication config 2026-03-17 14:09:20 -04:00
williamp 39aa23e3f4 postgres: only define external cluster for now 2026-03-17 13:59:24 -04:00
williamp 13526eca55 set up barman replication to weyma-bs 2026-03-17 13:54:27 -04:00
williamp 882cb99ee8 postgres: add LB for external connections 2026-03-16 20:11:22 -04:00
williamp 9281d2f089 postgres: migrate to backups via the barman plugin 2026-03-16 17:47:21 -04:00
williamp 5f939e121b add barman-cloud plugin 2026-03-15 19:51:06 -04:00
williamp 40eecf287f postgres: add attic db 2026-03-06 13:58:43 -05:00
williamp 684626c887 postgres: add authentik pooler, for transaction mode 2026-02-25 18:37:47 -05:00
williamp 3e1d159ee4 Revert "postgres: increase pooler settings"
Was not effective in fixing main issue
2026-02-25 18:36:36 -05:00
williamp e87de8cf55 postgres: increase pooler settings 2026-02-24 22:52:54 -05:00
williamp c88cfc31f6 postgres: revert replica experiment 2026-02-22 14:58:55 -05:00
williamp 648059e6c8 postgres: remove non-existant claude-hallucinated line 2026-02-22 14:15:59 -05:00
williamp 2f5abd234e fix 2026-02-22 12:22:43 -05:00
williamp f4622f791d use unique replica name 2026-02-22 12:21:39 -05:00
williamp f93e70b3c1 postgres: set up external hot replication 2026-02-22 12:16:05 -05:00
williamp 472c2cdec6 Merge pull request 'chore(deps): update helm release cloudnative-pg to v0.27.1' (#9) from renovate/cloudnative-pg-0.x into main
Reviewed-on: #9
2026-02-05 23:40:11 +00:00
renovate-bot 52f985e084 chore(deps): update helm release cloudnative-pg to v0.27.1 2026-02-05 17:00:10 +00:00
8 changed files with 121 additions and 13 deletions
+4 -1
View File
@@ -24,5 +24,8 @@ appVersion: "1.0"
dependencies:
- name: cloudnative-pg
version: 0.27.0
version: 0.28.0
repository: https://cloudnative-pg.github.io/charts
- name: plugin-barman-cloud
version: 0.6.0
repository: https://cloudnative-pg.github.io/charts
+25
View File
@@ -0,0 +1,25 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: attic-auth
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: cloudnativepg
metadataPolicy: None
property: attic_pw
secretKey: password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
template:
data:
username: attic
password: "{{ .password }}"
creationPolicy: Owner
deletionPolicy: Retain
name: attic-auth
+15
View File
@@ -0,0 +1,15 @@
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: truenas-s3
spec:
configuration:
destinationPath: "s3://weyma-talos-shared-pgsql-new/"
endpointURL: http://10.105.15.20:9000
s3Credentials:
accessKeyId:
key: s3AccessKey
name: s3-backup-creds
secretAccessKey:
key: s3SecretKey
name: s3-backup-creds
@@ -6,4 +6,7 @@ spec:
schedule: "0 0 4 * * *"
backupOwnerReference: self
cluster:
name: weyma-pgsql
name: weyma-pgsql
method: plugin
pluginConfiguration:
name: barman-cloud.cloudnative-pg.io
+50 -11
View File
@@ -11,23 +11,56 @@ spec:
size: 50Gi
storageClass: rook-ceph-block
backup:
barmanObjectStore:
destinationPath: "s3://weyma-talos-shared-pgsql-new/"
endpointURL: http://10.105.15.20:9000
s3Credentials:
accessKeyId:
key: s3AccessKey
name: s3-backup-creds
secretAccessKey:
key: s3SecretKey
name: s3-backup-creds
plugins:
- name: barman-cloud.cloudnative-pg.io
parameters:
barmanObjectName: truenas-s3
inheritedMetadata:
labels:
metrics_enabled: "true"
externalClusters:
- name: weyma-pgsql
plugin:
name: barman-cloud.cloudnative-pg.io
parameters:
barmanObjectName: truenas-s3
serverName: weyma-pgsql
- name: weyma-bs-pgsql
connectionParameters:
host: 10.105.6.198
user: streaming_replica
dbname: postgres
sslmode: require
plugin:
name: barman-cloud.cloudnative-pg.io
parameters:
barmanObjectName: truenas-s3
serverName: weyma-bs-pgsql
sslKey:
name: weyma-pgsql-replication
key: tls.key
sslCert:
name: weyma-pgsql-replication
key: tls.crt
sslRootCert:
name: weyma-pgsql-ca
key: ca.crt
replica:
primary: weyma-pgsql
source: weyma-bs-pgsql
managed:
services:
additional:
- selectorType: rw
serviceTemplate:
metadata:
name: weyma-pgsql-ext
spec:
type: LoadBalancer
roles:
- name: williamp
ensure: present
@@ -60,6 +93,12 @@ spec:
login: true
passwordSecret:
name: netmaker-auth
- name: attic
ensure: present
comment: attic
login: true
passwordSecret:
name: attic-auth
- name: pooler
ensure: present
comment: pooler
+9
View File
@@ -0,0 +1,9 @@
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: attic
spec:
name: attic
owner: attic
cluster:
name: weyma-pgsql
@@ -0,0 +1,14 @@
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: pooler-weyma-rw-authentik
spec:
cluster:
name: weyma-pgsql
instances: 3
type: rw
pgbouncer:
poolMode: transaction
parameters:
max_client_conn: "10000"
default_pool_size: "100"