88 lines
2.4 KiB
YAML
88 lines
2.4 KiB
YAML
cloudnative-pg:
|
|
|
|
monitoring:
|
|
podMonitorEnabled: true
|
|
grafanaDashboard:
|
|
create: true
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 100Mi
|
|
limits:
|
|
memory: 256Mi
|
|
|
|
priorityClassName: system-cluster-critical
|
|
|
|
# Example PostgreSQL cluster configuration
|
|
# Uncomment and customize to create a test cluster
|
|
# extraObjects:
|
|
# - apiVersion: postgresql.cnpg.io/v1
|
|
# kind: Cluster
|
|
# metadata:
|
|
# name: postgres-example
|
|
# namespace: cnpg-system
|
|
# spec:
|
|
# instances: 2
|
|
# resources:
|
|
# requests:
|
|
# memory: 128Mi
|
|
# cpu: 100m
|
|
# limits:
|
|
# memory: 1Gi
|
|
# cpu: '1'
|
|
# postgresql:
|
|
# parameters:
|
|
# max_connections: "200"
|
|
# shared_buffers: "128MB"
|
|
# effective_cache_size: "256MB"
|
|
# maintenance_work_mem: "16MB"
|
|
# random_page_cost: "1.1"
|
|
# effective_io_concurrency: "300"
|
|
# monitoring:
|
|
# enablePodMonitor: true
|
|
#
|
|
# # Use local-path-provisioner for storage
|
|
# storage:
|
|
# size: 50Gi
|
|
# storageClass: local-path
|
|
#
|
|
# # Backup configuration using new plugin system
|
|
# backup:
|
|
# retentionPolicy: "30d"
|
|
#
|
|
# # Volume for barman backups (uses same StorageClass as main storage)
|
|
# volumeSnapshot:
|
|
# className: local-path
|
|
#
|
|
# # S3 backup using barman-cloud plugin
|
|
# barmanObjectStore:
|
|
# destinationPath: s3://postgres-backups/
|
|
# endpointURL: http://rook-ceph-rgw-ceph-objectstore.rook-ceph.svc:80
|
|
#
|
|
# # S3 credentials reference
|
|
# s3Credentials:
|
|
# accessKeyId:
|
|
# name: postgres-backup-credentials
|
|
# key: ACCESS_KEY_ID
|
|
# secretAccessKey:
|
|
# name: postgres-backup-credentials
|
|
# key: ACCESS_SECRET_KEY
|
|
#
|
|
# # Compression settings
|
|
# data:
|
|
# compression: bzip2
|
|
# jobs: 2
|
|
# wal:
|
|
# compression: bzip2
|
|
# maxParallel: 2
|
|
#
|
|
# # Tags for backup organization
|
|
# tags:
|
|
# environment: "development"
|
|
# managed-by: "cloudnative-pg"
|
|
#
|
|
# # Backup history and retention
|
|
# historyTags:
|
|
# environment: "development"
|