REFACTOR(deploy): move argocd manifests

- Reorganize ArgoCD application structure
- Move manifests to deploy/argocd folder
This commit is contained in:
2025-12-17 18:27:23 +09:00
parent 78c9fc8336
commit 399abd0c00
5 changed files with 6 additions and 48 deletions

View File

@@ -1,36 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: portfolio
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://gitea0213.kro.kr/bluemayne/portfolio.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

@@ -3,10 +3,6 @@ kind: Application
metadata:
name: portfolio
namespace: argocd
annotations:
argocd-image-updater.argoproj.io/image-list: portfolio=ghcr.io/mayne0213/portfolio
argocd-image-updater.argoproj.io/portfolio.update-strategy: latest
argocd-image-updater.argoproj.io/write-back-method: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
@@ -15,22 +11,20 @@ spec:
source:
repoURL: https://gitea0213.kro.kr/bluemayne/portfolio.git
targetRevision: main
path: deploy/k8s/overlays/prod
path: .
destination:
server: https://kubernetes.default.svc
namespace: portfolio
namespace: argocd
syncPolicy:
automated:
prune: true # 매니페스트에서 제거된 리소스 자동 삭제
selfHeal: true # 클러스터에서 수동 변경 시 자동 복구
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true # namespace가 없으면 자동 생성
- PrunePropagationPolicy=foreground
- PruneLast=true
- CreateNamespace=true
retry:
limit: 5

View File

@@ -13,7 +13,7 @@ commonLabels:
# 이미지 태그 설정
images:
- name: ghcr.io/mayne0213/portfolio
newTag: main-sha-5e0974eab5e4edb6731c3776829c7f40e4276488
newTag: main-sha-d612c1a0b2796ba25d86c900f6945e79d7528d18
patchesStrategicMerge:
- deployment-patch.yaml