From c24fb6fb50a1b3cfa05e08ef6d0e05ded85d8a7e Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Thu, 25 Mar 2021 15:46:18 -0700 Subject: [PATCH] make storage size parametrizable My immediate need is to deploy an archive node; I need 300Gi of storage. --- charts/tezos/templates/baker.yaml | 2 +- charts/tezos/templates/node.yaml | 2 +- charts/tezos/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/tezos/templates/baker.yaml b/charts/tezos/templates/baker.yaml index 1b7af5680..dabdb1dd3 100644 --- a/charts/tezos/templates/baker.yaml +++ b/charts/tezos/templates/baker.yaml @@ -103,5 +103,5 @@ spec: - ReadWriteOnce resources: requests: - storage: "15Gi" + storage: {{ .Values.baker_statefulset.storage_size }} {{- end }} diff --git a/charts/tezos/templates/node.yaml b/charts/tezos/templates/node.yaml index ccaabb1e9..ad309df9c 100644 --- a/charts/tezos/templates/node.yaml +++ b/charts/tezos/templates/node.yaml @@ -42,4 +42,4 @@ spec: - ReadWriteOnce resources: requests: - storage: "15Gi" + storage: {{ .Values.regular_node_statefulset.storage_size }} diff --git a/charts/tezos/values.yaml b/charts/tezos/values.yaml index 0b9840d14..6e0fc47da 100644 --- a/charts/tezos/values.yaml +++ b/charts/tezos/values.yaml @@ -25,9 +25,11 @@ tezos_k8s_images: baker_statefulset: # charts/tezos/templates/baker.yaml name: tezos-baking-node node_type: baking + storage_size: 15Gi regular_node_statefulset: # charts/tezos/templates/node.yaml name: tezos-node node_type: regular + storage_size: 15Gi # For non-public chains the defualt mutez given to an account if the # account is not explicitly set below.