57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
image:
|
|
repository: postgres
|
|
tag: "16-alpine"
|
|
pullPolicy: IfNotPresent
|
|
|
|
auth:
|
|
username: postgres
|
|
database: gestion_db
|
|
# À surcharger via --set auth.password=xxx
|
|
password: ""
|
|
|
|
persistence:
|
|
enabled: true
|
|
size: 10Gi
|
|
# Répliqué sur 2 nœuds (Longhorn) : survit à la perte d'un nœud. Voir
|
|
# deploy/longhorn/storageclass.yml pour le prérequis d'installation.
|
|
storageClass: "longhorn-replicated"
|
|
accessMode: ReadWriteOnce
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
|
|
service:
|
|
type: ClusterIP
|
|
port: 5432
|
|
|
|
# Paramètres PostgreSQL (postgresql.conf)
|
|
config:
|
|
maxConnections: "200"
|
|
sharedBuffers: "256MB"
|
|
effectiveCacheSize: "768MB"
|
|
maintenanceWorkMem: "64MB"
|
|
walBuffers: "16MB"
|
|
defaultStatisticsTarget: "100"
|
|
randomPageCost: "1.1"
|
|
logMinDurationStatement: "1000"
|
|
|
|
podSecurityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 999
|
|
runAsGroup: 999
|
|
fsGroup: 999
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|