From c47dbf1e45272d46edb8f8368befaf90d0e17cf7 Mon Sep 17 00:00:00 2001 From: owen Date: Tue, 1 Apr 2025 09:54:38 +0800 Subject: [PATCH] 1 --- gp2504/patch/api-deployment_patch.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gp2504/patch/api-deployment_patch.yaml b/gp2504/patch/api-deployment_patch.yaml index 1ee3a78..99d26a5 100644 --- a/gp2504/patch/api-deployment_patch.yaml +++ b/gp2504/patch/api-deployment_patch.yaml @@ -3,6 +3,7 @@ kind: Deployment metadata: name: stock2-java-api spec: + replicas: 3 template: spec: containers: @@ -19,6 +20,14 @@ spec: env: - name: TZ value: "Asia/Shanghai" + livenessProbe: + httpGet: + path: /api/service.do + port: 80 + initialDelaySeconds: 60 + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 3 # resources: # requests: # cpu: "0.5"