Compare commits

..

2 Commits

Author SHA1 Message Date
d5e336c80b feat: Added patch for restoring database
All checks were successful
kustomization/flux-system/7f3678ff reconciliation succeeded
kustomization/lldap/7f3678ff reconciliation succeeded
kustomization/spegel/7f3678ff reconciliation succeeded
kustomization/longhorn-jobs/7f3678ff reconciliation succeeded
kustomization/cilium-config/7f3678ff reconciliation succeeded
kustomization/reflector/7f3678ff reconciliation succeeded
kustomization/alerts/7f3678ff reconciliation succeeded
kustomization/cilium/7f3678ff reconciliation succeeded
kustomization/cert-manager/7f3678ff reconciliation succeeded
kustomization/local-path-provisioner/7f3678ff reconciliation succeeded
kustomization/longhorn/7f3678ff reconciliation succeeded
kustomization/cnpg/7f3678ff reconciliation succeeded
kustomization/certificates/7f3678ff reconciliation succeeded
2025-12-19 04:05:10 +01:00
28dab8e5f4 feat: Added lldap 2025-12-19 04:04:07 +01:00
9 changed files with 38 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: lldap-db
spec:
bootstrap:
recovery:
source: source
externalClusters:
- name: source
plugin:
name: barman-cloud.cloudnative-pg.io
parameters:
barmanObjectName: garage-store
serverName: lldap-db
plugins: []

View File

@@ -1,7 +1,7 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: lldap-db
name: db
namespace: lldap
# TODO: Add labels?
spec:

View File

@@ -56,7 +56,7 @@ spec:
- name: LLDAP_DATABASE_URL
valueFrom:
secretKeyRef:
name: lldap-db-app
name: db-app
key: uri
- name: TZ
value: CET

View File

@@ -9,3 +9,9 @@ resources:
- http-route.yaml
- secret-s3-garage.yaml
- object-store.yaml
# Uncomment to restore database from backup
# patches:
# - path: cluster-restore.yaml
# target:
# kind: Cluster

View File

@@ -5,8 +5,7 @@ metadata:
namespace: lldap
spec:
configuration:
destinationPath: s3://cnpg-backup/
endpointURL: http://192.168.1.1:3900
destinationPath: s3://cnpg-backup/lldap
s3Credentials:
accessKeyId:
name: s3-garage

View File

@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: lldap-db
name: db
spec:
instances: 2

View File

@@ -1,6 +1,6 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: lldap-db
name: db
spec:
instances: 1

View File

@@ -10,6 +10,9 @@ patches:
- path: cluster.yaml
target:
kind: Cluster
- path: object-store.yaml
target:
kind: ObjectStore
- path: http-route.yaml
target:
kind: HTTPRoute

View File

@@ -0,0 +1,8 @@
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: garage-store
namespace: lldap
spec:
configuration:
endpointURL: http://192.168.1.1:3900