terminationGracePeriodSeconds优雅终止pod时间

  sre

DzjZdI.jpg
默认30s,可自定义:

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  namespace: default
spec:
  containers:
  - name: nginx
    image: nginx
  terminationGracePeriodSeconds: 60

LEAVE A COMMENT

Captcha Code