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:13 +09:00
parent fe24970f3b
commit 74a432ca64
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

@@ -14,7 +14,7 @@ commonLabels:
# 이미지 태그 설정
images:
- name: ghcr.io/mayne0213/portfolio
newTag: develop-sha-27139cd88a78da5cefb36fc4f62d48e1ea1fa7da
newTag: develop-sha-2cc7750449476d7609b14240d1090d5296655cdf
patchesStrategicMerge:
- deployment-patch.yaml