Files
argocd-apps/apps/base/artifactapi/cnpg_pooler.yaml
T
benvin 8cbd645332 feat: deploy artifactapi3 (#192)
just-enough to test terraform deployment and begin migration. have
change to cnpg for the database and a new bucket for storage

---------

Co-authored-by: Ben Vincent <ben@unkin.net>
Reviewed-on: #192
2026-06-20 12:22:22 +10:00

34 lines
773 B
YAML

---
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: artifactapi-postgres-pooler
namespace: artifactapi
spec:
cluster:
name: artifactapi-postgres
instances: 2
pgbouncer:
parameters:
default_pool_size: "100"
max_client_conn: "400"
paused: false
poolMode: session
template:
metadata:
labels:
app: artifactapi-pooler
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- artifactapi-pooler
topologyKey: kubernetes.io/hostname
containers: []
type: rw