forked from kimhyungsik/ax_hub_mcp_tool
chore: align compose and k8s tool services
All checks were successful
Deploy Tools / deploy (push) Successful in 1m24s
All checks were successful
Deploy Tools / deploy (push) Successful in 1m24s
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# dat-was-datmt OpenShift 배포
|
||||
|
||||
이 매니페스트는 `was-sal`, `was-cus`, `was-pro`, `was-sys`를 Gateway 전용 내부 Service로 배포합니다. OpenShift Route는 만들지 않습니다.
|
||||
이 매니페스트는 Gateway 없이 `was-sal`, `was-cus`, `was-pro`, `was-sys` Tool Service만 배포합니다. OpenShift Route는 만들지 않습니다.
|
||||
|
||||
## 반영 전 준비
|
||||
|
||||
1. `k8s/overlays/dev/kustomization.yaml`의 namespace, 내부 Registry 경로, release tag를 실제 개발망 값으로 바꿉니다.
|
||||
2. `k8s/base/configmap.yaml`의 `CHANGE_ME` 값을 개발망 MCI/EXTMCI/EAI 주소로 바꿉니다.
|
||||
2. `k8s/base/configmap.yaml`의 MCI, Memo HTTP, Insurance HTTP `CHANGE_ME` 값을 개발망 주소로 바꿉니다.
|
||||
3. Secret 값은 Git에 저장하지 말고, 배포 namespace에서 별도로 만듭니다.
|
||||
|
||||
```powershell
|
||||
@@ -23,8 +23,8 @@ oc apply -k k8s/overlays/dev
|
||||
oc get deployment,pod,svc -n axhub-datmt-dev
|
||||
```
|
||||
|
||||
## Gateway 연결 확인
|
||||
## Tool Service 연결 확인
|
||||
|
||||
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를 허용합니다.
|
||||
같은 namespace의 Tool은 `was-sal.axhub-datmt-dev.svc.cluster.local:8082`, `was-cus.axhub-datmt-dev.svc.cluster.local:8084`, `was-pro.axhub-datmt-dev.svc.cluster.local:8085`, `was-sys.axhub-datmt-dev.svc.cluster.local:8086` 형식의 FQDN으로 호출합니다. Deployment는 현재 namespace를 자동 주입해 `AXHUB_TOOL_URL`을 구성합니다.
|
||||
|
||||
현재 애플리케이션에는 Actuator health endpoint가 없으므로 TCP readiness/liveness probe를 사용합니다. Actuator를 추가한 뒤에는 HTTP health probe로 바꾸는 것을 권장합니다.
|
||||
|
||||
Reference in New Issue
Block a user