Files
tech-log-frontend/deploy/production/ingress.yaml
T
DongHyeonka 23e230e368 chore(deploy): 운영 hyeonworks.com 매니페스트를 지금 상태 그대로 기록한다
hyeonworks-prod의 앱 객체는 kubectl apply로만 들어가 있고 어느 repo에도
정본이 없다. 그래서 무엇이 운영에 떠 있는지 Git으로 볼 수 없고, 이미지나
설정을 바꿀 때 기준이 되는 파일도 없다.

live 객체 16개를 deploy/production에 그대로 옮긴다. backend·frontend·redis
Deployment, Service 넷, ServiceMonitor, logging ConfigMap, Ingress,
NetworkPolicy 여섯이다. 각 객체의 last-applied 설정을 쓰고, 서버가 채우는
칸(uid, resourceVersion, status, clusterIP 등)은 뺐다. 정본 위치는 소유자
결정(2026-11-11, 「앱 쪽은 tech-log repo deploy/」)을 따른다.
Namespace, techlog DB Role·Database, 다른 namespace의 NetworkPolicy·Probe·
규칙은 platform-core services/tenants/techlog가 맡는다.
hyeonworks-secrets Secret은 Git에 두지 않는다.

위험·한계: 동작은 바뀌지 않는다. 운영 source commit(frontend 7a4e201,
backend 46b1cc7)은 아직 Gitea에 없어서, 이 파일들이 가리키는 이미지를 이
repo의 main에서 다시 만들 수는 없다.

검증: kubectl kustomize deploy/production을 live 클러스터에 대고
kubectl diff를 돌렸다. 16개 객체 모두 차이가 0줄이다. 값을 하나씩 보고
비밀 값은 secretKeyRef 참조뿐인 것을 확인했다.
2026-11-12 07:33:12 +09:00

48 lines
1.0 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
name: hyeonworks-core
spec:
ingressClassName: traefik
rules:
- host: hyeonworks.com
http:
paths:
- backend:
service:
name: techlog-backend
port:
number: 8080
path: /api
pathType: Prefix
- backend:
service:
name: techlog-backend
port:
number: 8080
path: /oauth2
pathType: Prefix
- backend:
service:
name: techlog-backend
port:
number: 8080
path: /login
pathType: Prefix
- backend:
service:
name: techlog-backend
port:
number: 8080
path: /logout
pathType: Prefix
- backend:
service:
name: techlog-frontend
port:
number: 80
path: /
pathType: Prefix