Revert "refactor: rename dasmt to datmt across the project"

This reverts commit 740ef1c757.
This commit is contained in:
jade
2026-08-31 15:55:13 +09:00
parent 740ef1c757
commit cd991bd623
11 changed files with 438 additions and 448 deletions

View File

@@ -1,31 +1,30 @@
# dat-was-datmt OpenShift 諛고룷
# dat-was-dasmt OpenShift 배포
??留ㅻ땲?섏뒪?몃뒗 `was-sal`, `was-cus`, `was-pro`, `was-sys`瑜?Gateway ?꾩슜 ?대? Service濡?諛고룷?⑸땲?? OpenShift Route??留뚮뱾吏€ ?딆뒿?덈떎.
이 매니페스트는 `was-sal`, `was-cus`, `was-pro`, `was-sys`Gateway 전용 내부 Service로 배포합니다. OpenShift Route는 만들지 않습니다.
## 諛섏쁺 ??以€鍮?
## 반영 전 준비
1. `k8s/overlays/dev/kustomization.yaml`??namespace, ?대? Registry 寃쎈줈, release tag瑜??ㅼ젣 媛쒕컻留?媛믪쑝濡?諛붽퓠?덈떎.
2. `k8s/base/configmap.yaml`??`CHANGE_ME` 媛믪쓣 媛쒕컻留?MCI/EXTMCI/EAI 二쇱냼濡?諛붽퓠?덈떎.
3. Secret 媛믪? Git???€?ν븯吏€ 留먭퀬, 諛고룷 namespace?먯꽌 蹂꾨룄濡?留뚮벊?덈떎.
1. `k8s/overlays/dev/kustomization.yaml`namespace, 내부 Registry 경로, release tag를 실제 개발망 값으로 바꿉니다.
2. `k8s/base/configmap.yaml``CHANGE_ME` 값을 개발망 MCI/EXTMCI/EAI 주소로 바꿉니다.
3. Secret 값은 Git에 저장하지 말고, 배포 namespace에서 별도로 만듭니다.
```powershell
oc -n axhub-datmt-dev create secret generic datmt-runtime-secrets --from-env-file=runtime-secrets.env
oc -n axhub-dasmt-dev create secret generic dasmt-runtime-secrets --from-env-file=runtime-secrets.env
```
`runtime-secrets.env`?먮뒗 DB 怨꾩젙쨌鍮꾨?踰덊샇, API ?? ?몄쬆??鍮꾨?踰덊샇 ??誘쇨컧媛믩쭔 ?j퀬 ?€?μ냼??異붽??섏? ?딆뒿?덈떎. ?좏뵆由ъ??댁뀡???꾩슂??Secret ?ㅻ? ?ъ슜?섏? ?딅뒗 寃쎌슦?먮룄 鍮?Secret?€ 癒쇱? ?앹꽦?댁빞 Pod??`envFrom.secretRef`媛€ ?뺤긽 ?댁꽍?⑸땲??
`runtime-secrets.env`에는 DB 계정·비밀번호, API 키, 인증서 비밀번호 등 민감값만 넣고 저장소에 추가하지 않습니다. 애플리케이션이 필요한 Secret 키를 사용하지 않는 경우에도 빈 Secret은 먼저 생성해야 Pod`envFrom.secretRef`가 정상 해석됩니다.
## ?뚮뜑留곴낵 ?곸슜
## 렌더링과 적용
```powershell
oc kustomize k8s/overlays/dev
oc kustomize k8s/overlays/dev | oc apply --dry-run=client -f -
oc apply -k k8s/overlays/dev
oc get deployment,pod,svc -n axhub-datmt-dev
oc get deployment,pod,svc -n axhub-dasmt-dev
```
## Gateway ?곌껐 ?뺤씤
## Gateway 연결 확인
Gateway媛€ 媛숈? namespace???덈떎硫?`http://was-sal:8082`, `http://was-cus:8084`, `http://was-pro:8085`, `http://was-sys:8086`濡??몄텧?⑸땲?? ?ㅻⅨ namespace???덉쑝硫?`was-<module>.axhub-datmt-dev.svc` FQDN???ъ슜?섍퀬 NetworkPolicy?먯꽌 Gateway namespace??ingress瑜??덉슜?⑸땲??
?꾩옱 ?좏뵆由ъ??댁뀡?먮뒗 Actuator health endpoint媛€ ?놁쑝誘€濡?TCP readiness/liveness probe瑜??ъ슜?⑸땲?? Actuator瑜?異붽????ㅼ뿉??HTTP health probe濡?諛붽씀??寃껋쓣 沅뚯옣?⑸땲??
Gateway가 같은 namespace에 있다면 `http://was-sal:8082`, `http://was-cus:8084`, `http://was-pro:8085`, `http://was-sys:8086`로 호출합니다. 다른 namespace에 있으면 `was-<module>.axhub-dasmt-dev.svc` FQDN을 사용하고 NetworkPolicy에서 Gateway namespaceingress를 허용합니다.
현재 애플리케이션에는 Actuator health endpoint가 없으므로 TCP readiness/liveness probe를 사용합니다. Actuator를 추가한 뒤에는 HTTP health probe로 바꾸는 것을 권장합니다.

View File

@@ -1,9 +1,9 @@
apiVersion: v1
apiVersion: v1
kind: ConfigMap
metadata:
name: datmt-runtime-config
name: dasmt-runtime-config
labels:
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
data:
SPRING_PROFILES_ACTIVE: dev
TZ: Asia/Seoul
@@ -14,4 +14,3 @@ data:
GLOW_COMMUNICATION_EXTMCI_PORT: "8080"
GLOW_COMMUNICATION_EAI_HOST: CHANGE_ME
GLOW_COMMUNICATION_EAI_PORT: "9999"

View File

@@ -1,10 +1,10 @@
apiVersion: apps/v1
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-sal
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
replicas: 1
selector:
@@ -14,7 +14,7 @@ spec:
metadata:
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
containers:
- name: was-sal
@@ -25,9 +25,9 @@ spec:
containerPort: 8082
envFrom:
- configMapRef:
name: datmt-runtime-config
name: dasmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
name: dasmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-sal:8082
@@ -65,7 +65,7 @@ metadata:
name: was-cus
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
replicas: 1
selector:
@@ -75,7 +75,7 @@ spec:
metadata:
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
containers:
- name: was-cus
@@ -86,9 +86,9 @@ spec:
containerPort: 8084
envFrom:
- configMapRef:
name: datmt-runtime-config
name: dasmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
name: dasmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-cus:8084
@@ -126,7 +126,7 @@ metadata:
name: was-pro
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
replicas: 1
selector:
@@ -136,7 +136,7 @@ spec:
metadata:
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
containers:
- name: was-pro
@@ -147,9 +147,9 @@ spec:
containerPort: 8085
envFrom:
- configMapRef:
name: datmt-runtime-config
name: dasmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
name: dasmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-pro:8085
@@ -187,7 +187,7 @@ metadata:
name: was-sys
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
replicas: 1
selector:
@@ -197,7 +197,7 @@ spec:
metadata:
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
containers:
- name: was-sys
@@ -208,9 +208,9 @@ spec:
containerPort: 8086
envFrom:
- configMapRef:
name: datmt-runtime-config
name: dasmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
name: dasmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-sys:8086
@@ -241,4 +241,3 @@ spec:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault

View File

@@ -1,10 +1,10 @@
apiVersion: v1
apiVersion: v1
kind: Service
metadata:
name: was-sal
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
type: ClusterIP
selector:
@@ -20,7 +20,7 @@ metadata:
name: was-cus
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
type: ClusterIP
selector:
@@ -36,7 +36,7 @@ metadata:
name: was-pro
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
type: ClusterIP
selector:
@@ -52,7 +52,7 @@ metadata:
name: was-sys
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
app.kubernetes.io/part-of: axhub-dasmt
spec:
type: ClusterIP
selector:
@@ -61,4 +61,3 @@ spec:
- name: http
port: 8086
targetPort: http

View File

@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: axhub-datmt-dev
namespace: axhub-dasmt-dev
resources:
- ../../base
@@ -13,15 +13,14 @@ labels:
images:
- name: was-sal
newName: image-registry.openshift-image-registry.svc:5000/axhub-datmt-dev/was-sal
newName: image-registry.openshift-image-registry.svc:5000/axhub-dasmt-dev/was-sal
newTag: latest
- name: was-cus
newName: image-registry.openshift-image-registry.svc:5000/axhub-datmt-dev/was-cus
newName: image-registry.openshift-image-registry.svc:5000/axhub-dasmt-dev/was-cus
newTag: latest
- name: was-pro
newName: image-registry.openshift-image-registry.svc:5000/axhub-datmt-dev/was-pro
newName: image-registry.openshift-image-registry.svc:5000/axhub-dasmt-dev/was-pro
newTag: latest
- name: was-sys
newName: image-registry.openshift-image-registry.svc:5000/axhub-datmt-dev/was-sys
newName: image-registry.openshift-image-registry.svc:5000/axhub-dasmt-dev/was-sys
newTag: latest