From c0ee61fc066e64dba70749b0ef691dcc80d8f663 Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Wed, 27 Nov 2024 14:49:28 -0600 Subject: [PATCH] feat: allow block-node operators to easily set resource allocations to block-node deployment on k8 using helm chart (#364) Signed-off-by: Alfredo Gutierrez --- charts/hedera-block-node/templates/deployment.yaml | 7 +++++++ charts/hedera-block-node/values.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/charts/hedera-block-node/templates/deployment.yaml b/charts/hedera-block-node/templates/deployment.yaml index d2266856..6a52ba58 100644 --- a/charts/hedera-block-node/templates/deployment.yaml +++ b/charts/hedera-block-node/templates/deployment.yaml @@ -43,6 +43,13 @@ spec: name: {{ include "hedera-block-node.fullname" . }}-config - secretRef: name: {{ include "hedera-block-node.fullname" . }}-secret + resources: + requests: + memory: {{ .Values.blockNode.resources.requests.memory }} + cpu: {{ .Values.blockNode.resources.requests.cpu }} + limits: + memory: {{ .Values.blockNode.resources.limits.memory }} + cpu: {{ .Values.blockNode.resources.limits.cpu }} livenessProbe: httpGet: path: {{ .Values.blockNode.health.liveness.endpoint }} diff --git a/charts/hedera-block-node/values.yaml b/charts/hedera-block-node/values.yaml index cb0d6275..b34cafe0 100644 --- a/charts/hedera-block-node/values.yaml +++ b/charts/hedera-block-node/values.yaml @@ -89,6 +89,13 @@ blockNode: endpoint: "/healthz/livez" metrics: port: 9999 + resources: + limits: + cpu: "8" + memory: "16Gi" + requests: + cpu: "2" + memory: "8Gi" kubepromstack: enabled: true