added postgres

This commit is contained in:
Damien Ostler 2024-02-10 17:48:01 -05:00
parent 3fa472b9c0
commit 5355422dc9

View File

@ -19,50 +19,63 @@ spec:
name: 'core-api' name: 'core-api'
spec: spec:
project: 'comissions.app' project: 'comissions.app'
source: sources:
repoURL: https://github.com/comissions-app/argocd.git - repoURL: https://github.com/bitnami/charts.git
targetRevision: HEAD targetRevision: HEAD
path: charts/core-api path: bitnami/postgresql
helm: helm:
values: | values: |
postgresHost: "comissions-app-db" nameOverride : "comissions-app-db"
postgresPort: 5432 global:
postgresUsername: "postgres" postgresql:
postgresPassword: "uULzwSX1ck4R4UfsOCH4x9TmVBLj0nuKB20YBLVh0KYXDBpqF3A5QE86LZXV8BjA" auth:
postgresDatabase: "comissionsapp" username: "postgres"
image: password: "postgres"
repository: ghcr.io/comissions-app/core-api database: "comissionsapp"
pullPolicy: Always postgresqlPassword:
tag: "latest" - repoURL: https://github.com/comissions-app/argocd.git
targetRevision: HEAD
path: charts/core-api
helm:
values: |
postgresHost: "comissions-app-db"
postgresPort: 5432
postgresUsername: "postgres"
postgresPassword: "postgres"
postgresDatabase: "comissionsapp"
image:
repository: ghcr.io/comissions-app/core-api
pullPolicy: Always
tag: "latest"
imagePullSecrets: imagePullSecrets:
- name: comissions-app - name: comissions-app
resources: resources:
limits: limits:
cpu: 1 cpu: 1
requests: requests:
cpu: 100m cpu: 100m
autoscaling: autoscaling:
enabled: true enabled: true
minReplicas: 2 minReplicas: 2
maxReplicas: 20 maxReplicas: 20
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
ingress: ingress:
enabled: true enabled: true
annotations: annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m nginx.ingress.kubernetes.io/proxy-body-size: 512m
hosts: hosts:
- host: 'core-api.comissions.dev' - host: 'core-api.comissions.dev'
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: ImplementationSpecific
tls: tls:
- secretName: 'tls-secret' - secretName: 'tls-secret'
hosts: hosts:
- 'core-api.comissions.dev' - 'core-api.comissions.dev'
destination: destination:
server: 'https://kubernetes.default.svc' server: 'https://kubernetes.default.svc'
namespace: 'argocd' namespace: 'argocd'