최초 추가

This commit is contained in:
ByeonJungHun
2024-04-08 10:32:14 +09:00
commit 43ac649b53
5 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: bussiness1-chl-ingress
namespace: bussiness1
spec:
ingressClassName: exem-ingress
rules:
- host: bussiness1.10.10.52.7.nip.io
http:
paths:
- pathType: Prefix
backend:
service:
name: chl-svc
port:
number: 8077
path: /bussiness1/

14
bussiness1-chl-svc.yml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: chl-svc
namespace: bussiness1
spec:
selector:
app: bussiness1-chl
type: ClusterIP
ports:
- name: tomcat
protocol: TCP
port: 8080
targetPort: 8077

26
bussiness1-chl.template Normal file
View File

@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bussiness1-chl
namespace: bussiness1
labels:
app: bussiness1-chl
spec:
selector:
matchLabels:
app: bussiness1-chl
template:
metadata:
labels:
app: bussiness1-chl
spec:
containers:
- name: bussiness1-chl
image: harbor.elppa.xyz/test/intermax:${ver}
env:
- name: mci_url
value: "http://mci-svc.bussiness1.svc:8080/bussiness1/mci_core.jsp"
ports:
- name: tomcat
protocol: TCP
containerPort: 8077

14
bussiness1-mci-svc.yml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: mci-svc
namespace: bussiness1
spec:
selector:
app: bussiness1-mci
type: ClusterIP
ports:
- name: tomcat
protocol: TCP
port: 8080
targetPort: 8077

26
bussiness1-mci.template Normal file
View File

@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bussiness1-mci
namespace: bussiness1
labels:
app: bussiness1-mci
spec:
selector:
matchLabels:
app: bussiness1-mci
template:
metadata:
labels:
app: bussiness1-mci
spec:
containers:
- name: bussiness1-mci
image: harbor.elppa.xyz/test/intermax:${ver}
env:
- name: core_url
value: "http://bussiness1.10.10.52.7.nip.io:32080/bussiness1/"
ports:
- name: tomcat
protocol: TCP
containerPort: 8077