Skip to content

Commit

Permalink
feat: allow block-node operators to easily set resource allocations t…
Browse files Browse the repository at this point in the history
…o block-node deployment on k8 using helm chart (#364)

Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 authored Nov 27, 2024
1 parent 3de302a commit c0ee61f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/hedera-block-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/hedera-block-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0ee61f

Please sign in to comment.