feat: add Crunchy Data PostgreSQL Operator for chat-api#9
Merged
Conversation
Add PGO operator as ArgoCD Application for managing PostgreSQL clusters in Kubernetes. Deployed to postgres-operator namespace with sync-wave 1. - Helm chart: registry.developers.crunchydata.com/crunchydata/pgo - Version: 5.7.4 - singleNamespace: false (manages all namespaces) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Create in-cluster PostgreSQL database for chat-api using PGO: - PostgreSQL 16 with optimized configuration - 10Gi data volume on Longhorn storage - 5Gi backup volume for pgBackRest - User: chatapi, Database: chat PostgreSQL tuning for 2GB RAM / 2 CPU: - max_connections: 150 - shared_buffers: 512MB - effective_cache_size: 1536MB - work_mem: 3495kB 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add PGO operator to dev cluster kustomization - Update chat-api to use PGO-managed secret (chat-db-pguser-chatapi) - Map PGO secret 'uri' key to DATABASE_URL via extraEnv - Remove old postgree-secrets.yaml dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PostgresCluster is a CRD from Crunchy Data PGO operator, kubeconform doesn't have schema for it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chat-dbfor chat-api with optimized configurationChanges
PGO Operator (
platform/infrastructure/database/pgo/base/)postgres-operatornamespacePostgresCluster (
tenants/product-team/apps/chat/overlays/dev/postgres-cluster.yaml)chatapi, Database:chatchat-api configuration
chat-db-pguser-chatapiuri→DATABASE_URLvia extraEnvDependencies
Test plan
🤖 Generated with Claude Code