From 5198fe6264b66b5746aec09bebd2ce832cae8824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 5 Jun 2024 11:16:40 +0200 Subject: [PATCH] chore: :bricks: manifest.yaml: queue-worker-deployment, add PreStop command --- manifest.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifest.yaml b/manifest.yaml index f695104..cb11b8c 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -196,6 +196,9 @@ spec: - "bash" args: - "k8s-queues.sh" + PreStop: + exec: + command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map @@ -212,4 +215,4 @@ spec: volumes: - name: storage persistentVolumeClaim: - claimName: ${CI_PROJECT_PATH_SLUG}-pvc-storage \ No newline at end of file + claimName: ${CI_PROJECT_PATH_SLUG}-pvc-storage