From 2fdcb12383dc71a4fdb845754b312f77f063639d Mon Sep 17 00:00:00 2001 From: zhangdongdong Date: Sat, 22 Jan 2022 17:24:34 +0800 Subject: [PATCH] Update k8s-deploy-template.yaml --- k8s-deploy-template.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 259989c..465201b 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -24,12 +24,19 @@ spec: imagePullPolicy: "Always" ports: - containerPort: {PORT} + livenessProbe: + httpGet: + scheme: HTTP + path: /actuator/health + port: 1024 + initialDelaySeconds: 20 + periodSeconds: 10 readinessProbe: httpGet: scheme: HTTP path: /actuator/health port: 1024 - initialDelaySeconds: 10 - periodSeconds: 5 + initialDelaySeconds: 20 + periodSeconds: 10 imagePullSecrets: - name: kp-schbrain -- GitLab