Add encoding, localeCollate, and localeCType to initdb bootstrap configuration to ensure fulltext search (ilike) works correctly. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
31 lines
665 B
YAML
31 lines
665 B
YAML
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: {{ .Values.harbor.fullnameOverride }}-db
|
|
spec:
|
|
instances: {{ .Values.db.replicas }}
|
|
storage:
|
|
size: {{ .Values.db.size }}
|
|
{{- with .Values.db.storageClass }}
|
|
storageClass: {{ . }}
|
|
{{- end }}
|
|
bootstrap:
|
|
initdb:
|
|
database: app
|
|
owner: app
|
|
encoding: UTF8
|
|
localeCollate: en_US.UTF-8
|
|
localeCType: en_US.UTF-8
|
|
monitoring:
|
|
enablePodMonitor: true
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 2048Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
inheritedMetadata:
|
|
labels:
|
|
policy.cozystack.io/allow-to-apiserver: "true"
|