|
@@ -8,7 +8,7 @@ metadata:
|
|
|
app: offline-process-charge-callback
|
|
|
spec:
|
|
|
serviceName: offline-process-charge-callback
|
|
|
- replicas: 2
|
|
|
+ replicas: 1
|
|
|
selector:
|
|
|
matchLabels:
|
|
|
app: offline-process-charge-callback
|
|
@@ -30,7 +30,7 @@ spec:
|
|
|
# app.touchrs: touchrs
|
|
|
containers:
|
|
|
- name: offline-process-charge-callback
|
|
|
- image: hub.evbj.easou.com/qa/offline-process-charge-callback:v1.0.17
|
|
|
+ image: hub.evbj.easou.com/qa/offline-process-charge-callback:v1.0.26
|
|
|
imagePullPolicy: Always
|
|
|
env:
|
|
|
- name: JAVA_OPTS
|
|
@@ -43,11 +43,24 @@ spec:
|
|
|
volumeMounts:
|
|
|
- name: volume
|
|
|
mountPath: /data
|
|
|
+ lifecycle:
|
|
|
+ preStop:
|
|
|
+ exec:
|
|
|
+ command: ["/bin/sh","-c","curl -u amdin:ea1so2ua3dm4in5 -X POST 127.0.0.1:8080/actuator/shutdown"]
|
|
|
livenessProbe:
|
|
|
- tcpSocket:
|
|
|
+ httpGet:
|
|
|
+ path: /actuator/health
|
|
|
port: 8080
|
|
|
- initialDelaySeconds: 30
|
|
|
- periodSeconds: 15
|
|
|
+ httpHeaders:
|
|
|
+ - name: Custom-Header
|
|
|
+ value: Awesome
|
|
|
+ - name: Custom-Header
|
|
|
+ value: Awesome
|
|
|
+ initialDelaySeconds: 30 #60s后启动第一次探测
|
|
|
+ periodSeconds: 10 # 每隔10s启动一次探测
|
|
|
+ timeoutSeconds: 3 # 超时时间3s
|
|
|
+ successThreshold: 1 # 成功1次即表示容器健康
|
|
|
+ failureThreshold: 5 # 连续5次失败,则判定容器不健康,默认3次
|
|
|
readinessProbe:
|
|
|
tcpSocket:
|
|
|
port: 8080
|
|
@@ -88,7 +101,7 @@ metadata:
|
|
|
kubernetes.io/ingress.class: nginx
|
|
|
spec:
|
|
|
rules:
|
|
|
- - host: offline-process-charge-callback-qa.ieasou.cn
|
|
|
+ - host: qa-offline-process-charge-callback.ieasou.cn
|
|
|
http:
|
|
|
paths:
|
|
|
- path: /
|