68 lines
1.9 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:56:32 -05:00
namespace: argo-cd
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-08 23:49:58 -05:00
source:
repoURL: https://github.com/comissions-app/argocd.git
targetRevision: HEAD
path: charts/core-api
helm:
values: |
2024-02-09 00:09:54 -05:00
image:
2024-02-09 00:18:43 -05:00
repository: "{{.apps.core-api.image}}"
2024-02-09 00:09:54 -05:00
pullPolicy: Always
tag: "{{.apps.core-api.version}}"
2024-02-08 23:49:58 -05:00
imagePullSecrets:
2024-02-09 00:05:57 -05:00
- name: comissions-app
2024-02-08 23:49:58 -05:00
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:
2024-02-09 00:09:54 -05:00
- host: '{{.apps.core-api.ingress.host}}'
2024-02-08 23:49:58 -05:00
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: 'tls-secret'
hosts:
2024-02-09 00:09:54 -05:00
- '{{.apps.core-api.ingress.host}}'
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 00:05:57 -05:00
namespace: 'argo-cd '
2024-02-08 23:49:58 -05:00
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true