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
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-db
|
name: db
|
||||||
namespace: lldap
|
namespace: lldap
|
||||||
# TODO: Add labels?
|
# TODO: Add labels?
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ spec:
|
|||||||
- name: LLDAP_DATABASE_URL
|
- name: LLDAP_DATABASE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: lldap-db-app
|
name: db-app
|
||||||
key: uri
|
key: uri
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: CET
|
value: CET
|
||||||
|
|||||||
@@ -9,3 +9,9 @@ resources:
|
|||||||
- http-route.yaml
|
- http-route.yaml
|
||||||
- secret-s3-garage.yaml
|
- secret-s3-garage.yaml
|
||||||
- object-store.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
|
namespace: lldap
|
||||||
spec:
|
spec:
|
||||||
configuration:
|
configuration:
|
||||||
destinationPath: s3://cnpg-backup/
|
destinationPath: s3://cnpg-backup/lldap
|
||||||
endpointURL: http://192.168.1.1:3900
|
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
name: s3-garage
|
name: s3-garage
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-db
|
name: db
|
||||||
spec:
|
spec:
|
||||||
instances: 2
|
instances: 2
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
name: lldap-db
|
name: db
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 1
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ patches:
|
|||||||
- path: cluster.yaml
|
- path: cluster.yaml
|
||||||
target:
|
target:
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
|
- path: object-store.yaml
|
||||||
|
target:
|
||||||
|
kind: ObjectStore
|
||||||
- path: http-route.yaml
|
- path: http-route.yaml
|
||||||
target:
|
target:
|
||||||
kind: HTTPRoute
|
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