|
@@ -3,20 +3,20 @@
|
|
apiVersion: apps/v1
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
kind: StatefulSet
|
|
metadata:
|
|
metadata:
|
|
- name: apptj
|
|
|
|
|
|
+ name: cptj
|
|
namespace: bi
|
|
namespace: bi
|
|
labels:
|
|
labels:
|
|
- app: apptj
|
|
|
|
|
|
+ app: cptj
|
|
spec:
|
|
spec:
|
|
- serviceName: apptj
|
|
|
|
|
|
+ serviceName: cptj
|
|
replicas: 2
|
|
replicas: 2
|
|
selector:
|
|
selector:
|
|
matchLabels:
|
|
matchLabels:
|
|
- app: apptj
|
|
|
|
|
|
+ app: cptj
|
|
template:
|
|
template:
|
|
metadata:
|
|
metadata:
|
|
labels:
|
|
labels:
|
|
- app: apptj
|
|
|
|
|
|
+ app: cptj
|
|
spec:
|
|
spec:
|
|
hostNetwork: true
|
|
hostNetwork: true
|
|
terminationGracePeriodSeconds: 30
|
|
terminationGracePeriodSeconds: 30
|
|
@@ -42,13 +42,13 @@ spec:
|
|
mountPath: /data
|
|
mountPath: /data
|
|
- name: init-package
|
|
- name: init-package
|
|
image: hub.evbj.easou.com/dev/busybox
|
|
image: hub.evbj.easou.com/dev/busybox
|
|
- command: ['sh', '-c', 'rm -rf /data/webapps/* && wget http://10.40.20.61/release/search-wapage/prod-64/easou-bi/1.0.14/easou-bi_1.0.14_addK8s_T-5888_1.0.14_20241216-162719_RBL/ROOT.war -O /data/webapps/ROOT.war && md5sum /data/webapps/ROOT.war']
|
|
|
|
|
|
+ command: ['sh', '-c', 'rm -rf /data/webapps/* && wget http://10.40.20.61/release/search-wapage/prod-64/easoubi-bookcptj/1.0.23/easoubi-bookcptj_1.0.23_addDataInterface_T1.0.22-5087_1.0.23_20221117-093916_RBL/ROOT.war -O /data/webapps/ROOT.war && md5sum /data/webapps/ROOT.war']
|
|
imagePullPolicy: IfNotPresent
|
|
imagePullPolicy: IfNotPresent
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: volume
|
|
- name: volume
|
|
mountPath: /data
|
|
mountPath: /data
|
|
containers:
|
|
containers:
|
|
- - name: apptj
|
|
|
|
|
|
+ - name: cptj
|
|
image: hub.evbj.easou.com/bi/apptj:v1base
|
|
image: hub.evbj.easou.com/bi/apptj:v1base
|
|
imagePullPolicy: Always
|
|
imagePullPolicy: Always
|
|
ports:
|
|
ports:
|
|
@@ -84,10 +84,10 @@ spec:
|
|
apiVersion: v1
|
|
apiVersion: v1
|
|
kind: Service
|
|
kind: Service
|
|
metadata:
|
|
metadata:
|
|
- name: apptj-svc
|
|
|
|
|
|
+ name: cptj-svc
|
|
namespace: bi
|
|
namespace: bi
|
|
labels:
|
|
labels:
|
|
- app: apptj-svc
|
|
|
|
|
|
+ app: cptj-svc
|
|
spec:
|
|
spec:
|
|
type: NodePort
|
|
type: NodePort
|
|
ports:
|
|
ports:
|
|
@@ -95,12 +95,12 @@ spec:
|
|
targetPort: 8080
|
|
targetPort: 8080
|
|
nodePort: 30010
|
|
nodePort: 30010
|
|
selector:
|
|
selector:
|
|
- app: apptj
|
|
|
|
|
|
+ app: cptj
|
|
---
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
kind: Ingress
|
|
metadata:
|
|
metadata:
|
|
- name: apptj-ingress
|
|
|
|
|
|
+ name: cptj-ingress
|
|
namespace: bi
|
|
namespace: bi
|
|
annotations:
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
kubernetes.io/ingress.class: nginx
|
|
@@ -108,24 +108,24 @@ metadata:
|
|
nginx.ingress.kubernetes.io/affinity-mode: persistent
|
|
nginx.ingress.kubernetes.io/affinity-mode: persistent
|
|
spec:
|
|
spec:
|
|
rules:
|
|
rules:
|
|
- - host: bi-apptj.ieasou.cn
|
|
|
|
|
|
+ - host: bi-cptj.ieasou.cn
|
|
http:
|
|
http:
|
|
paths:
|
|
paths:
|
|
- path: /
|
|
- path: /
|
|
pathType: Prefix
|
|
pathType: Prefix
|
|
backend:
|
|
backend:
|
|
service:
|
|
service:
|
|
- name: apptj-svc
|
|
|
|
|
|
+ name: cptj-svc
|
|
port:
|
|
port:
|
|
number: 8080
|
|
number: 8080
|
|
- - host: apptj.appeasou.com
|
|
|
|
|
|
+ - host: cptj.busydata.cn
|
|
http:
|
|
http:
|
|
paths:
|
|
paths:
|
|
- path: /
|
|
- path: /
|
|
pathType: Prefix
|
|
pathType: Prefix
|
|
backend:
|
|
backend:
|
|
service:
|
|
service:
|
|
- name: apptj-svc
|
|
|
|
|
|
+ name: cptj-svc
|
|
port:
|
|
port:
|
|
number: 8080
|
|
number: 8080
|
|
ingressClassName: nginx
|
|
ingressClassName: nginx
|