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 참조뿐인 것을 확인했다.
30 lines
466 B
YAML
30 lines
466 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: techlog-backend
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
selector:
|
|
app: techlog-backend
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: techlog-backend
|
|
component: management
|
|
name: techlog-management
|
|
spec:
|
|
ports:
|
|
- name: management
|
|
port: 9001
|
|
targetPort: management
|
|
selector:
|
|
app: techlog-backend
|
|
type: ClusterIP
|