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