--- # Real GitLab on the VPS - simplified single-node equivalent of # apps/gitlab/manifests/cnpg-cluster.yaml (home's is 3-instance HA with # Rook-Ceph; this is 1 instance on local-path, matching the "keep it # lighter" pattern already used for the rest of vps-standby). apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: pg-gitlab namespace: gitlab spec: imageName: ghcr.io/cloudnative-pg/postgresql:16 instances: 1 resources: requests: memory: "512Mi" cpu: "50m" limits: memory: "2Gi" cpu: "500m" storage: size: 20Gi storageClass: local-path primaryUpdateStrategy: unsupervised bootstrap: initdb: database: gitlabhq_production owner: app postInitSQL: - CREATE EXTENSION IF NOT EXISTS pg_trgm; - CREATE EXTENSION IF NOT EXISTS btree_gist; # Same tuning as home's, GitLab needs these regardless of scale postgresql: parameters: max_connections: "200" shared_buffers: "512MB" effective_cache_size: "1536MB" maintenance_work_mem: "128MB" checkpoint_completion_target: "0.9" wal_buffers: "16MB" default_statistics_target: "100" random_page_cost: "1.1" effective_io_concurrency: "200" work_mem: "8MB" min_wal_size: "1GB" max_wal_size: "4GB" monitoring: enablePodMonitor: false # no Prometheus on the VPS cluster