diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 4fb3d109921c010bfcaec0d471437a1b5e16e652..849b7aa910aa47f171ce8edb8a249d5888c370ea 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -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