| 默认值 | 30 秒(Pod 级可覆盖) |
|---|---|
| 计时起点 | Pod 终止流程开始(含 preStop) |
| 超时后果 | 容器被 SIGKILL |
| 估算 | 大于「摘流延迟 + 最长请求处理时间」 |
调大宽限期
调大宽限期
spec:
terminationGracePeriodSeconds: 60
containers:
- name: app
image: registry.example.com/app:1.9.0长连接与上传类服务需要更长的宽限期;同时确认负载均衡的读超时与重试策略与之匹配。