Add kustomization and frontend ArgoCD application

This commit is contained in:
Damir Mukimov 2025-12-24 19:20:11 +01:00
parent 78d87ae345
commit c6eba62352
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: turash-frontend
namespace: argocd
labels:
app: turash-frontend
environment: production
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: https://github.com/SamyRai/turash.git
targetRevision: master
path: k8s
kustomize:
commonAnnotations:
app.kubernetes.io/managed-by: argocd
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

18
k8s/kustomization.yaml Normal file
View File

@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: turash
resources:
- namespace.yaml
- configmap.yaml
- deployment.yaml
- service.yaml
- ingress.yaml
- hpa.yaml
- pdb.yaml
- frontend-deployment.yaml
- frontend-service.yaml
- frontend-ingress.yaml
- frontend-hpa.yaml