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"