All checks were successful
Build and Publish / build-release (push) Successful in 1m22s
124 lines
2.9 KiB
YAML
124 lines
2.9 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 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
|
|
metadata:
|
|
name: policy-service-pg
|
|
labels:
|
|
app.kubernetes.io/name: policy-service
|
|
app.kubernetes.io/instance: policy-service
|
|
spec:
|
|
description: "PostgreSQL cluster for policy-service"
|
|
imageName: ghcr.io/cloudnative-pg/container-image:1.23.1
|
|
instances: 1
|
|
bootstrap:
|
|
initdb:
|
|
database: policy_service
|
|
owner: policy_service
|
|
users:
|
|
- name: policy_service
|
|
database: policy_service
|
|
storage:
|
|
size: 5Gi
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
monitoring:
|
|
enablePodMonitoring: true
|