Updated on 2024-09-24 GMT+08:00

Pod Scale-In Time Window

  1. Log in to the CCE Console console and click the cluster name to access the cluster console. In the navigation pane, choose Workloads. Then, locate the workload you want to upgrade and choose More > Edit YAML in the Operation column.
  2. Configure the following parameters in YAML:

    spec:
      template:
        spec:
          terminationGracePeriodSeconds: 301

    Parameter description

    Parameter

    Description

    Scale-In Time Window (s) (terminationGracePeriodSeconds)

    Graceful deletion time. The default value is 301s (greater than the termination drain time of the Istio-proxy container). When a pod is deleted, a SIGTERM signal is sent and the system waits for the applications in the container to terminate. If the applications are not terminated within the time specified by terminationGracePeriodSeconds, a SIGKILL signal is sent to forcibly terminate the pod.

    You can also click Upgrade in the Operation column of the workload to configure the parameters.

  • Configuring this parameter will trigger a workload rolling upgrade. This means pods will restart immediately. If an old pod is deleted, the old value (30s) will be used.
  • For workloads injected with sidecars, the larger value between the termination drain duration of the Istio-proxy container and the graceful deletion time of the service container is used.