mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 16:16:23 +00:00
🚀 주요 변경사항: - Kustomize 기반 환경별(dev/staging/prod) 매니페스트 관리 - SonarQube 코드 품질 분석 통합 - 환경별 Docker 이미지 빌드 및 푸시 - AKS 자동 배포 워크플로우 - 수동 배포 스크립트 추가 📁 생성된 파일: - GitHub Actions 워크플로우: .github/workflows/backend-cicd.yaml - Kustomize Base: 23개 파일 - Kustomize Overlays: dev(12), staging(12), prod(12) - 환경별 설정 파일: 3개 - 배포 스크립트: 1개 - 가이드 문서: 1개 ✨ 주요 기능: - 환경별 독립적 설정 (replicas, resources, secrets) - SonarQube Quality Gate 검증 (선택적) - 롤백 지원 (GitHub Actions, kubectl, 수동 스크립트) - HTTPS 지원 (staging/prod) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
77 lines
1.8 KiB
YAML
77 lines
1.8 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
namespace: phonebill-dg0500
|
|
|
|
resources:
|
|
- ../../base
|
|
|
|
patches:
|
|
# Common patches
|
|
- path: cm-common-patch.yaml
|
|
target:
|
|
kind: ConfigMap
|
|
name: cm-common
|
|
- path: secret-common-patch.yaml
|
|
target:
|
|
kind: Secret
|
|
name: secret-common
|
|
- path: ingress-patch.yaml
|
|
target:
|
|
kind: Ingress
|
|
name: phonebill
|
|
|
|
# API Gateway patches
|
|
- path: deployment-api-gateway-patch.yaml
|
|
target:
|
|
kind: Deployment
|
|
name: api-gateway
|
|
|
|
# User Service patches
|
|
- path: deployment-user-service-patch.yaml
|
|
target:
|
|
kind: Deployment
|
|
name: user-service
|
|
- path: secret-user-service-patch.yaml
|
|
target:
|
|
kind: Secret
|
|
name: secret-user-service
|
|
|
|
# Bill Service patches
|
|
- path: deployment-bill-service-patch.yaml
|
|
target:
|
|
kind: Deployment
|
|
name: bill-service
|
|
- path: secret-bill-service-patch.yaml
|
|
target:
|
|
kind: Secret
|
|
name: secret-bill-service
|
|
|
|
# Product Service patches
|
|
- path: deployment-product-service-patch.yaml
|
|
target:
|
|
kind: Deployment
|
|
name: product-service
|
|
- path: secret-product-service-patch.yaml
|
|
target:
|
|
kind: Secret
|
|
name: secret-product-service
|
|
|
|
# KOS Mock patches
|
|
- path: deployment-kos-mock-patch.yaml
|
|
target:
|
|
kind: Deployment
|
|
name: kos-mock
|
|
|
|
images:
|
|
- name: acrdigitalgarage01.azurecr.io/phonebill/api-gateway
|
|
newTag: prod-latest
|
|
- name: acrdigitalgarage01.azurecr.io/phonebill/user-service
|
|
newTag: prod-latest
|
|
- name: acrdigitalgarage01.azurecr.io/phonebill/bill-service
|
|
newTag: prod-latest
|
|
- name: acrdigitalgarage01.azurecr.io/phonebill/product-service
|
|
newTag: prod-latest
|
|
- name: acrdigitalgarage01.azurecr.io/phonebill/kos-mock
|
|
newTag: prod-latest
|