Files
customer-service/ops/chart/values.yaml
HaimKortovich 420811c530
All checks were successful
Build and Publish / build-release (push) Successful in 3m13s
add command
2026-04-15 17:08:29 -05:00

141 lines
3.6 KiB
YAML

controllers:
main:
enabled: true
type: deployment
replicas: 1
initContainers:
migrate:
image:
repository: gitea.corredorconect.com/software-engineering/customer-service
tag: '{{ $.Chart.AppVersion }}'
command:
- "/bin/customer_service"
args:
- "eval"
- "CustomService.Release.migrate"
env:
MIX_ENV: prod
DATABASE_URL:
valueFrom:
secretKeyRef:
name: customer-service-cluster-pg-app
key: uri
containers:
main:
image:
repository: gitea.corredorconect.com/software-engineering/customer-service
tag: '{{ $.Chart.AppVersion }}'
command:
- "/bin/customer_service"
args:
- "start"
env:
LOG_LEVEL: info
MIX_ENV: prod
PORT: "8080"
PHX_HOST: "0.0.0.0"
PHX_SERVER: "true"
DATABASE_URL:
valueFrom:
secretKeyRef:
name: customer-service-cluster-pg-app
key: uri
SECRET_KEY_BASE:
valueFrom:
secretKeyRef:
name: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}-secrets'
key: secretKeyBase
RELEASE_COOKIE:
valueFrom:
secretKeyRef:
name: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}-secrets'
key: cookie
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:
controller: main
type: ClusterIP
ports:
http:
port: 8080
protocol: HTTP
rawResources:
password-generator:
enabled: true
apiVersion: generators.external-secrets.io/v1alpha1
kind: Password
suffix: password-generator
spec:
spec:
length: 32
noUpper: false
allowRepeat: true
secretKeys:
- cookie
- secretKeyBase
external-secret:
enabled: true
apiVersion: external-secrets.io/v1
kind: ExternalSecret
suffix: secrets
spec:
spec:
refreshInterval: 0s
secretStoreRef:
name: cluster-secrets-store
kind: ClusterSecretStore
target:
name: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}-secrets'
creationPolicy: Owner
dataFrom:
- sourceRef:
generatorRef:
apiVersion: generators.external-secrets.io/v1alpha1
kind: Password
name: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}-password-generator'
cluster:
enabled: true
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
suffix: pg
spec:
spec:
description: "PostgreSQL cluster for customer-service"
instances: 1
bootstrap:
initdb:
database: customer_service
owner: customer_service
storage:
size: 5Gi