From 7d924544b5ac44da485405506d481860e5718fb1 Mon Sep 17 00:00:00 2001 From: ouyangjinting Date: Tue, 25 Nov 2025 15:39:19 +0800 Subject: [PATCH] Set terminationGracePeriodSeconds appropriately Ensure that terminationGracePeriodSeconds is larger than anycableShutdownTimeout to avoid triggering a forced termination. --- anycable-go/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anycable-go/templates/deployment.yaml b/anycable-go/templates/deployment.yaml index 45da1fd..96bd5f3 100644 --- a/anycable-go/templates/deployment.yaml +++ b/anycable-go/templates/deployment.yaml @@ -156,7 +156,7 @@ spec: {{- end }} dnsPolicy: ClusterFirst restartPolicy: Always - terminationGracePeriodSeconds: 30 + terminationGracePeriodSeconds: {{ add (int .env.anycableShutdownTimeout) 5 }} {{- with .tls }} volumes: - name: ssl