63 lines
1.7 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-08 23:55:14 -05:00
namespace: argocd
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:
- path: "dev/.config/*.json"
template:
metadata:
name: 'core-api'
spec:
project: '{{.deployment.argocd.project}}'
source:
repoURL: https://github.com/comissions-app/argocd.git
targetRevision: HEAD
path: charts/core-api
helm:
values: |
imagePullSecrets:
- name: regcred
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'
destination:
server: '{{.deployment.cluster.address}}'
namespace: '{{.deployment.cluster.namespace}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true