Files
policy-service/ops/chart/values.yaml
HaimKortovich a4af47f005
All checks were successful
Build and Publish / build-release (push) Successful in 1m27s
use only url from config
2026-04-14 12:39:39 -05:00

104 lines
2.3 KiB
YAML

controllers:
main:
enabled: true
type: deployment
replicas: 1
initContainers:
migrate:
image:
repository: gitea.corredorconect.com/software-engineering/policy-service
tag: latest
pullPolicy: IfNotPresent
command:
- sh
- -c
- >
mix ecto.create &&
mix ecto.migrate &&
mix event_store.create &&
mix event_store.init
env:
MIX_ENV: prod
containers:
main:
image:
repository: gitea.corredorconect.com/software-engineering/policy-service
tag: latest
pullPolicy: IfNotPresent
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
ingress:
main:
enabled: false
className: nginx
hosts:
- host: policy-service.local
paths:
- path: /
pathType: Prefix
service:
identifier: main
port: http
postgresql:
enabled: true
image: ghcr.io/cloudnative-pg/container-image:1.23.1
instances: 1
database: policy_service
owner: policy_service
appUsername: policy_service
storageSize: 1Gi
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi