소스 업데이트
All checks were successful
Deploy Tools / deploy (push) Successful in 1m24s

This commit is contained in:
jade
2026-08-31 09:57:03 +09:00
parent 0fcbef043b
commit 6a6592f2d5
10 changed files with 44 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
# dat-was-datmt OpenShift 배포
# dat-was-dasmt OpenShift 배포
이 매니페스트는 `was-sal`, `was-cus`, `was-pro`, `was-sys`를 Gateway 전용 내부 Service로 배포합니다. OpenShift Route는 만들지 않습니다.
@@ -9,7 +9,7 @@
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 키, 인증서 비밀번호 등 민감값만 넣고 저장소에 추가하지 않습니다. 애플리케이션이 필요한 Secret 키를 사용하지 않는 경우에도 빈 Secret은 먼저 생성해야 Pod의 `envFrom.secretRef`가 정상 해석됩니다.
@@ -20,11 +20,11 @@ oc -n axhub-datmt-dev create secret generic datmt-runtime-secrets --from-env-fil
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가 같은 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를 허용합니다.
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 namespace의 ingress를 허용합니다.
현재 애플리케이션에는 Actuator health endpoint가 없으므로 TCP readiness/liveness probe를 사용합니다. Actuator를 추가한 뒤에는 HTTP health probe로 바꾸는 것을 권장합니다.

View File

@@ -1,9 +1,9 @@
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

View File

@@ -4,7 +4,7 @@ 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

View File

@@ -4,7 +4,7 @@ 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:

View File

@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: axhub-datmt-dev
namespace: axhub-dasmt-dev
resources:
- ../../base
@@ -13,14 +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