feat: add OpenShift deployment manifests
All checks were successful
Deploy Tools / deploy (push) Successful in 2m9s

This commit is contained in:
jade
2026-08-21 11:27:45 +09:00
parent b617eaabe4
commit ba2f43cd60
6 changed files with 385 additions and 0 deletions

16
k8s/base/configmap.yaml Normal file
View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: datmt-runtime-config
labels:
app.kubernetes.io/part-of: axhub-datmt
data:
SPRING_PROFILES_ACTIVE: dev
TZ: Asia/Seoul
AXHUB_GATEWAY_URL: http://gateway:8080
GLOW_COMMUNICATION_MCI_HOST: CHANGE_ME
GLOW_COMMUNICATION_MCI_PORT: "26160"
GLOW_COMMUNICATION_EXTMCI_HOST: CHANGE_ME
GLOW_COMMUNICATION_EXTMCI_PORT: "8080"
GLOW_COMMUNICATION_EAI_HOST: CHANGE_ME
GLOW_COMMUNICATION_EAI_PORT: "9999"

243
k8s/base/deployments.yaml Normal file
View File

@@ -0,0 +1,243 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-sal
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: was-sal
template:
metadata:
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
spec:
containers:
- name: was-sal
image: was-sal:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8082
envFrom:
- configMapRef:
name: datmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-sal:8082
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-cus
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: was-cus
template:
metadata:
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
spec:
containers:
- name: was-cus
image: was-cus:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8084
envFrom:
- configMapRef:
name: datmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-cus:8084
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-pro
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: was-pro
template:
metadata:
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
spec:
containers:
- name: was-pro
image: was-pro:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8085
envFrom:
- configMapRef:
name: datmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-pro:8085
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: was-sys
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: was-sys
template:
metadata:
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
spec:
containers:
- name: was-sys
image: was-sys:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8086
envFrom:
- configMapRef:
name: datmt-runtime-config
- secretRef:
name: datmt-runtime-secrets
env:
- name: AXHUB_TOOL_URL
value: http://was-sys:8086
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 6
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 3
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault

View File

@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- services.yaml
- deployments.yaml

63
k8s/base/services.yaml Normal file
View File

@@ -0,0 +1,63 @@
apiVersion: v1
kind: Service
metadata:
name: was-sal
labels:
app.kubernetes.io/name: was-sal
app.kubernetes.io/part-of: axhub-datmt
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: was-sal
ports:
- name: http
port: 8082
targetPort: http
---
apiVersion: v1
kind: Service
metadata:
name: was-cus
labels:
app.kubernetes.io/name: was-cus
app.kubernetes.io/part-of: axhub-datmt
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: was-cus
ports:
- name: http
port: 8084
targetPort: http
---
apiVersion: v1
kind: Service
metadata:
name: was-pro
labels:
app.kubernetes.io/name: was-pro
app.kubernetes.io/part-of: axhub-datmt
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: was-pro
ports:
- name: http
port: 8085
targetPort: http
---
apiVersion: v1
kind: Service
metadata:
name: was-sys
labels:
app.kubernetes.io/name: was-sys
app.kubernetes.io/part-of: axhub-datmt
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: was-sys
ports:
- name: http
port: 8086
targetPort: http