2024-02-07 23:03:10 -05:00
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
kind: ApplicationSet
|
|
|
|
metadata:
|
2024-02-08 20:32:37 -05:00
|
|
|
name: core-api
|
2024-02-08 22:50:49 -05:00
|
|
|
namespace: comissions-dev
|
2024-02-07 23:03:10 -05:00
|
|
|
spec:
|
|
|
|
goTemplate: true
|
|
|
|
goTemplateOptions: ["missingkey=error"]
|
|
|
|
generators:
|
|
|
|
- git:
|
2024-02-08 23:19:55 -05:00
|
|
|
repoURL: https://github.com/comissions-app/argocd.git
|
2024-02-07 23:03:10 -05:00
|
|
|
revision: HEAD
|
|
|
|
files:
|
|
|
|
- path: "dev/.config/*.json"
|
|
|
|
template:
|
|
|
|
metadata:
|
2024-02-08 20:32:37 -05:00
|
|
|
name: "core-api-{{.deployment.cluster.namespace}}"
|
2024-02-07 23:03:10 -05:00
|
|
|
spec:
|
|
|
|
project: "{{.deployment.argocd.project}}"
|
|
|
|
source:
|
2024-02-08 23:19:55 -05:00
|
|
|
repoURL: https://github.com/comissions-app/argocd.git
|
2024-02-07 23:03:10 -05:00
|
|
|
targetRevision: HEAD
|
2024-02-08 23:22:42 -05:00
|
|
|
path: charts/core-api/
|
2024-02-07 23:03:10 -05:00
|
|
|
helm:
|
|
|
|
values: |
|
|
|
|
fullnameOverride: "core-api"
|
|
|
|
image:
|
|
|
|
tag: '{{ .apps.core-api.version }}'
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: comissions-app
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
annotations:
|
|
|
|
nginx.ingress.kubernetes.io/proxy-body-size: 100m
|
|
|
|
nginx.ingress.kubernetes.io/proxy-buffer-size: 256k
|
|
|
|
nginx.ingress.kubernetes.io/proxy-buffering: 'on'
|
|
|
|
nginx.ingress.kubernetes.io/proxy-buffers-number: '4'
|
|
|
|
nginx.ingress.kubernetes.io/proxy-max-temp-file-size: 1024m
|
|
|
|
hosts:
|
|
|
|
- host: '{{.apps.core-api.ingress.host}}'
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
tls:
|
|
|
|
- secretName: ''
|
|
|
|
hosts:
|
|
|
|
- '{{.apps.core-api.ingress.host}}'
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: "500m"
|
|
|
|
requests:
|
|
|
|
cpu: "10m"
|
|
|
|
|
|
|
|
autoscaling:
|
|
|
|
enabled: true
|
|
|
|
minReplicas: 1
|
|
|
|
maxReplicas: 10
|
|
|
|
targetCPUUtilizationPercentage: 80
|
|
|
|
|
|
|
|
destination:
|
|
|
|
server: "{{.deployment.cluster.address}}"
|
|
|
|
namespace: "{{.deployment.cluster.namespace}}"
|
|
|
|
syncPolicy:
|
|
|
|
automated:
|
|
|
|
prune: true
|
|
|
|
selfHeal: true
|
|
|
|
syncOptions:
|
|
|
|
- ApplyOutOfSyncOnly=true
|
|
|
|
- CreateNamespace=true
|