mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +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>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: phonebill
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- phonebill.example.com
|
|
secretName: phonebill-prod-tls
|
|
rules:
|
|
- host: phonebill.example.com
|
|
http:
|
|
paths:
|
|
- path: /api/v1/auth
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: user-service
|
|
port:
|
|
number: 80
|
|
- path: /api/v1/users
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: user-service
|
|
port:
|
|
number: 80
|
|
- path: /api/v1/bills
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: bill-service
|
|
port:
|
|
number: 80
|
|
- path: /api/v1/products
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: product-service
|
|
port:
|
|
number: 80
|
|
- path: /api/v1/kos
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: kos-mock
|
|
port:
|
|
number: 80
|