From 1a850876bf29be0dd4d21586545d4437c1c56806 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 28 Dec 2021 01:57:01 +0800 Subject: [PATCH] chart: use Recreate strategy --- charts/bbgo/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/bbgo/templates/deployment.yaml b/charts/bbgo/templates/deployment.yaml index 7f3164b02..db9a5397d 100644 --- a/charts/bbgo/templates/deployment.yaml +++ b/charts/bbgo/templates/deployment.yaml @@ -8,6 +8,9 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + strategy: + # we need to cleanly cancel all the orders, so we use Recreate strategy here + type: Recreate selector: matchLabels: {{- include "bbgo.selectorLabels" . | nindent 6 }}