Skip to content

Commit

Permalink
chore: adding k8s-update-strategy trait on marlowe-contract template (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
renebarbosafl authored Dec 13, 2023
1 parent 2b9a90f commit 5de2467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/marlowe-runtime/templates/marlowe-contract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
resources:
requests:
storage: 200Gi
- type: k8s-update-strategy
properties:
strategy:
type: Recreate
policies:
- name: local-{{ $.Values.namespace }}
properties:
Expand Down

0 comments on commit 5de2467

Please sign in to comment.