From a82d68feb742ad9cd334bea1f3cd97ddcc81b6f4 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 9 Mar 2023 14:04:35 +1300 Subject: [PATCH] Add prestop to graph node (#6) * add prestop script * update version * update version * add prestop hook --- charts/graphprotocol-node/Chart.yaml | 2 +- charts/graphprotocol-node/templates/deployment.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/graphprotocol-node/Chart.yaml b/charts/graphprotocol-node/Chart.yaml index fe33b64..370ac77 100644 --- a/charts/graphprotocol-node/Chart.yaml +++ b/charts/graphprotocol-node/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: graphprotocol-node description: A Helm chart for Graph Protocol Nodes type: application -version: 0.1.12 +version: 0.1.13 keywords: - graphprotocol - ethereum diff --git a/charts/graphprotocol-node/templates/deployment.yaml b/charts/graphprotocol-node/templates/deployment.yaml index ed88ab5..efaf0f6 100644 --- a/charts/graphprotocol-node/templates/deployment.yaml +++ b/charts/graphprotocol-node/templates/deployment.yaml @@ -46,6 +46,10 @@ spec: securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + lifecycle: + preStop: + exec: + command: ["/bin/sh", "-c", "sleep 60"] imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{ if eq .Values.role "index-node" }}