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

Termination Drain Duration of the Istio-proxy Container

  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:
    metadata:
          annotations:
            proxy.istio.io/config: |
              terminationDrainDuration: 300s

    Parameter description

    Parameter

    Description

    terminationDrainDuration

    The amount of time that the istio-proxy container waits for before it is killed or shut down when the applications in the container are terminated. The recommended value is 300s when the Istio-ingressgateway is used.

Configuring this parameter will trigger a workload rolling upgrade. This means pods will restart immediately. If an old pod is deleted, the old value (5s) will be used.