8cbd645332
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
34 lines
773 B
YAML
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
|