Compare commits
2 Commits
d51e723179
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
d5e336c80b
|
|||
|
28dab8e5f4
|
16
apps/lldap/base/cluster-restore.yaml
Normal file
16
apps/lldap/base/cluster-restore.yaml
Normal 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: []
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: lldap-db
|
||||
name: db
|
||||
namespace: lldap
|
||||
# TODO: Add labels?
|
||||
spec:
|
||||
|
||||
@@ -56,7 +56,7 @@ spec:
|
||||
- name: LLDAP_DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: lldap-db-app
|
||||
name: db-app
|
||||
key: uri
|
||||
- name: TZ
|
||||
value: CET
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: lldap-db
|
||||
name: db
|
||||
spec:
|
||||
instances: 2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: lldap-db
|
||||
name: db
|
||||
spec:
|
||||
instances: 1
|
||||
|
||||
@@ -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
|
||||
|
||||
8
apps/lldap/staging/object-store.yaml
Normal file
8
apps/lldap/staging/object-store.yaml
Normal 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
|
||||
Reference in New Issue
Block a user