mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: ql3-postgres
|
||||
spec:
|
||||
plugins:
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
isWALArchiver: true
|
||||
parameters:
|
||||
barmanObjectName: ql3-postgres-backup
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
resources:
|
||||
- scheduled-backup.yaml
|
||||
|
||||
patches:
|
||||
- path: cluster-plugin-patch.yaml
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
# Example only. Copy into a private overlay and replace every placeholder.
|
||||
# This resource is intentionally excluded from the Component.
|
||||
apiVersion: barmancloud.cnpg.io/v1
|
||||
kind: ObjectStore
|
||||
metadata:
|
||||
name: ql3-postgres-backup
|
||||
namespace: qinglong3-system
|
||||
labels:
|
||||
app.kubernetes.io/name: ql3-postgres
|
||||
app.kubernetes.io/component: database-backup
|
||||
app.kubernetes.io/part-of: qinglong3
|
||||
spec:
|
||||
retentionPolicy: 30d
|
||||
configuration:
|
||||
destinationPath: s3://REPLACE_WITH_VERSIONED_LOCKED_BUCKET/qinglong3/ql3-postgres
|
||||
endpointURL: https://REPLACE_WITH_OBJECT_STORE_ENDPOINT
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: ql3-postgres-backup-object-store
|
||||
key: ACCESS_KEY_ID
|
||||
secretAccessKey:
|
||||
name: ql3-postgres-backup-object-store
|
||||
key: ACCESS_SECRET_KEY
|
||||
wal:
|
||||
compression: lz4
|
||||
encryption: AES256
|
||||
maxParallel: 2
|
||||
data:
|
||||
compression: lz4
|
||||
encryption: AES256
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
# Example only. Save as kustomization.yaml in a private overlay beside a
|
||||
# populated object-store.yaml. Do not apply this file directly.
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../operators/cloudnative-pg
|
||||
- object-store.yaml
|
||||
|
||||
components:
|
||||
- ../../components/barman-cloud-backup
|
||||
@@ -0,0 +1,20 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: ScheduledBackup
|
||||
metadata:
|
||||
name: ql3-postgres-daily
|
||||
namespace: qinglong3-system
|
||||
labels:
|
||||
app.kubernetes.io/name: ql3-postgres
|
||||
app.kubernetes.io/component: database-backup
|
||||
app.kubernetes.io/part-of: qinglong3
|
||||
spec:
|
||||
schedule: '0 0 0 * * *'
|
||||
backupOwnerReference: self
|
||||
immediate: false
|
||||
suspend: false
|
||||
target: prefer-standby
|
||||
cluster:
|
||||
name: ql3-postgres
|
||||
method: plugin
|
||||
pluginConfiguration:
|
||||
name: barman-cloud.cloudnative-pg.io
|
||||
Reference in New Issue
Block a user