Conversation
- app.yaml → board.yaml (Deployment) + board-svc.yaml (Service) 분리 - kustomization.yaml 생성 (prod 리소스 통합) - commonLabels로 project/environment 일괄 적용
- k8s 디렉토리를 ArgoCD가 감시하여 배포 자동화 - main 브랜치 변경 시 자동 sync - prune + selfHeal 활성화
- deploy-production.yml: kubectl set image → kustomize edit set image + git push - kustomization.yaml: images 섹션 추가 (kustomize edit set image 대응)
- preview-db.yaml에서 Namespace 리소스 제거 - cluster 저장소(manifests/namespaces/preview.yaml)에서 관리 중
- git SHA 기반 유니크 태그 사용 (git-{sha7})
- kind load 후 host 이미지 정리
- k8s/prod/: production 리소스 (board, board-svc, postgres, ingress) - k8s/preview/: preview 리소스 (preview, preview-db) - k8s/argocd-application.yaml: path를 k8s/prod로 변경 - k8s/kustomization.yaml: prod/로 이동 ArgoCD는 k8s/prod/만 바라보고, Actions는 k8s/preview/를 사용하여 PR preview를 구성함.
kustomize commonLabels가 selector에 environment, project를 추가하지만 k8s는 selector를 immutable로 간주하여 ArgoCD sync 실패. selector.matchLabels에 명시적으로 추가하여 git과 live state 일치.
- argocd-application.yaml namespace: argocd로 이동 (CreateNamespace=true) - k8s/prod/kustomization.yaml에 namespace.yaml resource 추가 - k8s/prod/namespace.yaml 신규 생성 (board-prod) Closes #13
- pr-preview.yml: runs-on [self-hosted], k8s/preview/preview.yaml 경로 - deploy-production.yml: runs-on [self-hosted], k8s/prod/ 경로
|
🚀 Preview ready: https://preview-board-15.abyssworks.dev |
1 similar comment
|
🚀 Preview ready: https://preview-board-15.abyssworks.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.1.2 릴리즈
변경사항
브랜치 전략
이번 릴리즈는 feat/argocd-13 → main direct 머지 (dev 경유 생략).
v0.2.0 작업(댓글 수정/삭제)은 dev에 그대로 보존.