From 43ac649b5373d20af561d99ec433e3b7559caa7c Mon Sep 17 00:00:00 2001 From: ByeonJungHun Date: Mon, 8 Apr 2024 10:32:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EC=B4=88=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bussiness1-chl-ingress.yml | 18 ++++++++++++++++++ bussiness1-chl-svc.yml | 14 ++++++++++++++ bussiness1-chl.template | 26 ++++++++++++++++++++++++++ bussiness1-mci-svc.yml | 14 ++++++++++++++ bussiness1-mci.template | 26 ++++++++++++++++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 bussiness1-chl-ingress.yml create mode 100644 bussiness1-chl-svc.yml create mode 100644 bussiness1-chl.template create mode 100644 bussiness1-mci-svc.yml create mode 100644 bussiness1-mci.template diff --git a/bussiness1-chl-ingress.yml b/bussiness1-chl-ingress.yml new file mode 100644 index 0000000..01bb031 --- /dev/null +++ b/bussiness1-chl-ingress.yml @@ -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/ \ No newline at end of file diff --git a/bussiness1-chl-svc.yml b/bussiness1-chl-svc.yml new file mode 100644 index 0000000..b2e398c --- /dev/null +++ b/bussiness1-chl-svc.yml @@ -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 \ No newline at end of file diff --git a/bussiness1-chl.template b/bussiness1-chl.template new file mode 100644 index 0000000..c65596c --- /dev/null +++ b/bussiness1-chl.template @@ -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 \ No newline at end of file diff --git a/bussiness1-mci-svc.yml b/bussiness1-mci-svc.yml new file mode 100644 index 0000000..ebacaa4 --- /dev/null +++ b/bussiness1-mci-svc.yml @@ -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 \ No newline at end of file diff --git a/bussiness1-mci.template b/bussiness1-mci.template new file mode 100644 index 0000000..edeee2e --- /dev/null +++ b/bussiness1-mci.template @@ -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 \ No newline at end of file