|
@@ -9,7 +9,7 @@ metadata:
|
|
|
app: book-webview
|
|
|
spec:
|
|
|
serviceName: book-webview
|
|
|
- replicas: 2
|
|
|
+ replicas: 3
|
|
|
selector:
|
|
|
matchLabels:
|
|
|
app: book-webview
|
|
@@ -20,7 +20,7 @@ spec:
|
|
|
spec:
|
|
|
readinessGates:
|
|
|
- conditionType: InPlaceUpdateReady
|
|
|
- terminationGracePeriodSeconds: 180
|
|
|
+ terminationGracePeriodSeconds: 30
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
|
dnsConfig:
|
|
|
nameservers:
|
|
@@ -36,7 +36,7 @@ spec:
|
|
|
mountPath: /data
|
|
|
- name: init-package
|
|
|
image: hub.evbj.easou.com/dev/busybox
|
|
|
- command: ['sh', '-c', 'rm -rf /data/project/* && wget http://10.26.22.190/release/app-web/prod-64/esbookweb/1.5.416/esbookweb_1.5.416_changeSearchEnv_T1.5.413-180117_1.5.416_20220829-163114_RBL/ROOT.war -O /data/project/ROOT.war']
|
|
|
+ command: ['sh', '-c', 'rm -rf /data/project/* && wget http://10.26.22.190/release/app-web/prod-64/esbookweb/1.5.416/esbookweb_1.5.416_changeSearchEnv_T1.5.413-180117_1.5.416_20220829-163114_RBL/ROOT.war -O /data/project/ROOT.war && md5sum /data/project/ROOT.war']
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
volumeMounts:
|
|
|
- name: volume
|
|
@@ -48,6 +48,10 @@ spec:
|
|
|
ports:
|
|
|
- containerPort: 8080
|
|
|
name: port
|
|
|
+ lifecycle:
|
|
|
+ preStop:
|
|
|
+ exec:
|
|
|
+ command: ["/bin/sh","-c","supervisorctl stop all"]
|
|
|
volumeMounts:
|
|
|
- name: volume
|
|
|
mountPath: /data
|