Commit e46ac5c8 authored by liaozan's avatar liaozan 🏀

Update k8s-deploy-template.yaml

parent 5e405595
...@@ -43,17 +43,22 @@ spec: ...@@ -43,17 +43,22 @@ spec:
preStop: preStop:
exec: exec:
command: [ "curl","-X","POST","http://127.0.0.1:1024/actuator/offline" ] command: [ "curl","-X","POST","http://127.0.0.1:1024/actuator/offline" ]
startupProbe:
httpGet:
scheme: HTTP
path: /actuator/health
port: 1024
failureThreshold: 6
periodSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
scheme: HTTP scheme: HTTP
path: /actuator/health/liveness path: /actuator/health/liveness
port: 1024 port: 1024
initialDelaySeconds: 50
periodSeconds: 10 periodSeconds: 10
readinessProbe: readinessProbe:
httpGet: httpGet:
scheme: HTTP scheme: HTTP
path: /actuator/health/readiness path: /actuator/health/readiness
port: 1024 port: 1024
initialDelaySeconds: 50
periodSeconds: 10 periodSeconds: 10
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment