turash/k8s/argocd/application.yaml

48 lines
1.0 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: turash-backend
namespace: argocd
labels:
app: turash-backend
environment: production
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/SamyRai/turash.git
targetRevision: HEAD
path: k8s
kustomize: {}
destination:
server: https://kubernetes.default.svc
namespace: turash
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
revisionHistoryLimit: 10
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas
- group: autoscaling
kind: HorizontalPodAutoscaler
jsonPointers:
- /spec/minReplicas
- /spec/maxReplicas