89 lines
2.6 KiB
YAML
Raw Normal View History

2024-02-07 23:03:10 -05:00
apiVersion: argoproj.io/v1alpha1
2024-02-08 23:49:58 -05:00
kind: ApplicationSet
2024-02-07 23:03:10 -05:00
metadata:
2024-02-08 20:32:37 -05:00
name: core-api
2024-02-09 23:07:29 -05:00
namespace: argocd
2024-02-09 23:03:11 -05:00
finalizers:
- resources-finalizer.argocd.argoproj.io
2024-02-07 23:03:10 -05:00
spec:
2024-02-08 23:49:58 -05:00
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://github.com/comissions-app/argocd.git
revision: HEAD
files:
2024-02-09 00:04:57 -05:00
- path: "dev/.config/config.json"
2024-02-08 23:49:58 -05:00
template:
metadata:
name: 'core-api'
spec:
2024-02-09 00:04:57 -05:00
project: 'comissions.app'
2024-02-10 17:48:01 -05:00
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"
2024-02-09 00:09:54 -05:00
2024-02-10 17:48:01 -05:00
imagePullSecrets:
- name: comissions-app
resources:
limits:
cpu: 1
requests:
cpu: 100m
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 20
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
2024-02-08 23:49:58 -05:00
2024-02-10 17:48:01 -05:00
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'
2024-02-08 23:49:58 -05:00
destination:
2024-02-09 00:04:57 -05:00
server: 'https://kubernetes.default.svc'
2024-02-09 23:07:29 -05:00
namespace: 'argocd'
2024-02-08 23:49:58 -05:00
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
2024-02-09 22:11:29 -05:00
- CreateNamespace=true