FEAT(app): add per-application ingress management

- Added ingress.yaml for production and development environments
- Updated kustomization files to include ingress resources
- Migrated from centralized ingress management to per-app architecture
This commit is contained in:
2025-12-25 20:20:59 +09:00
parent 439181b131
commit b03db1a5b8
4 changed files with 66 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: portfolio-ingress
annotations:
# HTTP를 HTTPS로 자동 리다이렉트
nginx.ingress.kubernetes.io/ssl-redirect: "true"
# cert-manager가 인증서를 자동으로 발급하도록 설정
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: haproxy
# TLS 설정
tls:
- hosts:
- minjo0213.kro.kr
- www.minjo0213.kro.kr
secretName: portfolio-tls
rules:
- host: minjo0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: portfolio-service
port:
number: 80
- host: www.minjo0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: portfolio-service
port:
number: 80

View File

@@ -6,6 +6,7 @@ namespace: portfolio
resources:
- ../../base
- resourcequota.yaml
- ingress.yaml
commonLabels:
environment: production
@@ -13,7 +14,7 @@ commonLabels:
# 이미지 태그 설정
images:
- name: ghcr.io/mayne0213/portfolio
newTag: main-sha-e99afbace689963cdc552732f453adedfe1a751c
newTag: main-sha-56e4096a7ad4a4bef8a2a48fc005bd1991859793
patchesStrategicMerge:
- deployment-patch.yaml