mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-02-02 20:23:09 +00:00
fix(k8s): make codex-node memory resources conditional
Make the resources block for codex-node container conditional on experiment.memory being set and non-empty. If codexMemory is not provided in the workflow parameters or is set to an empty string, no resource limits will be set on the pod. Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
This commit is contained in:
parent
884b16d8c5
commit
8d11207e73
@ -47,11 +47,13 @@ spec:
|
||||
imagePullPolicy: {{ include "benchmark.harness.imagePullPolicy" . }}
|
||||
ports:
|
||||
- containerPort: 6890
|
||||
{{- if and .Values.experiment.memory (ne .Values.experiment.memory "") }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.experiment.memory | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.experiment.memory | quote }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: POD_IP
|
||||
valueFrom:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user