Files
policy-service/ops/chart/values.yaml
HaimKortovich 5e4f1f33c8
All checks were successful
Build and Publish / build-release (push) Successful in 4m57s
use chart app version for tag
2026-04-14 14:49:01 -05:00

102 lines
2.4 KiB
YAML

controllers:
main:
enabled: true
type: deployment
replicas: 1
initContainers:
migrate:
image:
repository: gitea.corredorconect.com/software-engineering/policy-service
tag: '{{ $.Chart.AppVersion }}'
command:
- /bin/sh
- -c
- "mix ecto.create && mix ecto.migrate && mix event_store.create && mix event_store.init"
env:
MIX_ENV: prod
DATABASE_URL:
valueFrom:
secretKeyRef:
name: policy-service-pg-app
key: uri
containers:
main:
image:
repository: gitea.corredorconect.com/software-engineering/policy-service
tag: '{{ $.Chart.AppVersion }}'
env:
MIX_ENV: prod
PORT: "8080"
PHX_HOST: "0.0.0.0"
DATABASE_URL:
valueFrom:
secretKeyRef:
name: policy-service-pg-app
key: uri
probes:
liveness:
enabled: true
custom: true
spec:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
readiness:
enabled: true
custom: true
spec:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
service:
main:
enabled: true
controller: main
primary: true
type: ClusterIP
ports:
http:
enabled: true
primary: true
port: 8080
protocol: HTTP
# PostgreSQL Cluster - managed externally via CNPG operator
# The secret policy-service-pg-app will be created by CNPG
rawResources:
cluster:
enabled: true
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
suffix: pg
spec:
spec:
description: "PostgreSQL cluster for policy-service"
instances: 1
bootstrap:
initdb:
database: policy_service
owner: policy_service
storage:
size: 5Gi
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi