From 5de2467b15685d4c8576f2991c43bc229c9b78f7 Mon Sep 17 00:00:00 2001 From: renebarbosafl <70078638+renebarbosafl@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:45:44 -0300 Subject: [PATCH] chore: adding k8s-update-strategy trait on marlowe-contract template (#778) This trait will introduce a change on `marlowe-contract` update strategy, instead of create a new pod before terminating an old one (Default policy, `RolloutUpdate`), it will terminate the old one before creating a new one (`Recreate` strategy). It is needed because with the default policy, the new pods are stuck in `ContainerCreating` waiting for the EBS volume allocation. --- deploy/marlowe-runtime/templates/marlowe-contract.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/marlowe-runtime/templates/marlowe-contract.yaml b/deploy/marlowe-runtime/templates/marlowe-contract.yaml index 91f9a89d8d..87d9e00f56 100644 --- a/deploy/marlowe-runtime/templates/marlowe-contract.yaml +++ b/deploy/marlowe-runtime/templates/marlowe-contract.yaml @@ -67,6 +67,10 @@ spec: resources: requests: storage: 200Gi + - type: k8s-update-strategy + properties: + strategy: + type: Recreate policies: - name: local-{{ $.Values.namespace }} properties: