diff --git a/templates/_backend.tpl b/templates/_backend.tpl index 028fe73..7980b16 100644 --- a/templates/_backend.tpl +++ b/templates/_backend.tpl @@ -69,15 +69,19 @@ spec: path: /health port: http scheme: HTTP - initialDelaySeconds: 15 + initialDelaySeconds: 120 periodSeconds: 30 + timeoutSeconds: 15 + failureThreshold: 12 # 120 + 30×12 = 480s 才杀,容忍 .NET 冷启动连库 readinessProbe: httpGet: path: /alive port: http scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 10 + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 8 # 60 + 30×8 = 300s 才标 NotReady --- # Service: {{ .name }}