diff --git a/application.yaml b/application.yaml deleted file mode 100644 index dbde1d9..0000000 --- a/application.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: jovies - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - - source: - repoURL: https://gitea0213.kro.kr/bluemayne/jovies.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 diff --git a/application-dev.yaml b/deploy/argocd/application-dev.yaml similarity index 100% rename from application-dev.yaml rename to deploy/argocd/application-dev.yaml diff --git a/deploy/argocd/application.yaml b/deploy/argocd/application.yaml index 7100ff2..dbde1d9 100644 --- a/deploy/argocd/application.yaml +++ b/deploy/argocd/application.yaml @@ -3,10 +3,6 @@ kind: Application metadata: name: jovies namespace: argocd - annotations: - argocd-image-updater.argoproj.io/image-list: jovies=ghcr.io/mayne0213/jovies - argocd-image-updater.argoproj.io/jovies.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/jovies.git targetRevision: main - path: deploy/k8s/overlays/prod + path: . destination: server: https://kubernetes.default.svc - namespace: jovies + 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 diff --git a/kustomization.yaml b/deploy/argocd/kustomization.yaml similarity index 100% rename from kustomization.yaml rename to deploy/argocd/kustomization.yaml diff --git a/deploy/k8s/overlays/dev/kustomization.yaml b/deploy/k8s/overlays/dev/kustomization.yaml index e5573d3..fd92af3 100644 --- a/deploy/k8s/overlays/dev/kustomization.yaml +++ b/deploy/k8s/overlays/dev/kustomization.yaml @@ -14,7 +14,7 @@ commonLabels: # 이미지 태그 설정 images: - name: ghcr.io/mayne0213/jovies - newTag: develop-sha-b27f4a1c67210ae1b2d1096e35c19c70258d9a66 + newTag: develop-sha-253a5257f44a20c3c33c2cf7302bb8e24f370c45 patchesStrategicMerge: - deployment-patch.yaml