|
@@ -23,7 +23,7 @@ spec:
|
|
app: book-api-rs
|
|
app: book-api-rs
|
|
readinessGates:
|
|
readinessGates:
|
|
- conditionType: InPlaceUpdateReady
|
|
- conditionType: InPlaceUpdateReady
|
|
- terminationGracePeriodSeconds: 180
|
|
|
|
|
|
+ terminationGracePeriodSeconds: 30
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
dnsConfig:
|
|
dnsConfig:
|
|
nameservers:
|
|
nameservers:
|
|
@@ -39,7 +39,7 @@ 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/project/* && wget http://10.26.22.190/release/app-web/prod-64/novelapi/3.1.279/novelapi_3.1.279_quickappDev_B3.1.278-180049_3.1.279_20220915-165454_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/novelapi/3.1.279/novelapi_3.1.279_quickappDev_B3.1.278-180049_3.1.279_20220915-165454_RBL/ROOT.war -O /data/project/ROOT.war && /data/project/ROOT.war']
|
|
imagePullPolicy: IfNotPresent
|
|
imagePullPolicy: IfNotPresent
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: volume
|
|
- name: volume
|
|
@@ -51,6 +51,10 @@ spec:
|
|
ports:
|
|
ports:
|
|
- containerPort: 8080
|
|
- containerPort: 8080
|
|
name: port
|
|
name: port
|
|
|
|
+ lifecycle:
|
|
|
|
+ preStop:
|
|
|
|
+ exec:
|
|
|
|
+ command: ["/bin/sh","-c","supervisorctl stop all"]
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: volume
|
|
- name: volume
|
|
mountPath: /data
|
|
mountPath: /data
|