REFACTOR(deploy): move argocd manifests

- Reorganize ArgoCD application structure
- Move manifests to deploy/argocd folder
This commit is contained in:
2025-12-17 18:26:14 +09:00
parent b9e68a1bea
commit 87ef329443
4 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: todo-dev
namespace: argocd
spec:
project: default
source:
repoURL: https://gitea0213.kro.kr/bluemayne/todo.git
targetRevision: develop
path: deploy/k8s/overlays/dev
destination:
server: https://kubernetes.default.svc
namespace: todo-dev
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -0,0 +1,36 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: todo
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://gitea0213.kro.kr/bluemayne/todo.git
targetRevision: main
path: .
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
revisionHistoryLimit: 10

View File

@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# App of Apps Application (self-managing)
- application.yaml
# Application deployments (prod and dev)
- application-dev.yaml

View File

@@ -16,7 +16,7 @@ commonLabels:
# 이미지 태그 설정
images:
- name: ghcr.io/mayne0213/todo
newTag: develop-sha-7a5e45bfa0d7214137a5352fee4cdc86d99936c4
newTag: develop-sha-12cfa514cbc7025c1ea8e7a6efd670468ec8d040
patchesStrategicMerge:
- deployment-patch.yaml