Commit f4b903d9 authored by liaozan's avatar liaozan 🏀

feat: add preStop probe to graceful shutdown

parent df4e0826
......@@ -15,6 +15,7 @@ spec:
labels:
app: ${APP_NAME}
spec:
terminationGracePeriodSeconds: 20
containers:
- name: ${APP_NAME}
image: ${IMAGE}
......@@ -24,6 +25,12 @@ spec:
protocol: TCP
- containerPort: 1024
protocol: TCP
lifecycle:
preStop:
httpGet:
scheme: HTTP
path: /actuator/offline
port: 1024
livenessProbe:
httpGet:
scheme: HTTP
......
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