Pod Scale-In Time Window
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot