Skip to content

Commit

Permalink
Merge pull request #225 from 2i2c-org/resources
Browse files Browse the repository at this point in the history
Allow specifying resources separately for all components
  • Loading branch information
yuvipanda authored Jan 23, 2025
2 parents 0156fae + f8578c2 commit 040d9ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
- frx_challenges.wsgi
securityContext:
runAsUser: 0
resources: {{ toJson .Values.resources }}
resources: {{ toJson .Values.web.resources }}
volumeMounts:
- name: storage
mountPath: /opt/state
Expand All @@ -103,6 +103,7 @@ spec:
subPath: frx_challenges.yaml
- name: dind
image: {{ .Values.dind.image.repository }}:{{ .Values.dind.image.tag }}
resources: {{ toJson .Values.dind.resources }}
command:
{{ if .Values.dind.rootless }}
- dind
Expand All @@ -121,6 +122,7 @@ spec:
- name: evaluator
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources: {{ toJson .Values.evaluator.resources }}
args:
- python
- manage.py
Expand Down
9 changes: 7 additions & 2 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ image:
tag: "1.0.1"
pullPolicy: IfNotPresent

web:
resources: {}

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -36,8 +39,6 @@ pvc:
storage: 1Gi
storageClassName:

resources: {}

nodeSelector: {}

tolerations: []
Expand All @@ -63,8 +64,12 @@ nginx:

extraInitContainers: {}

evaluator:
resources: {}

dind:
rootless: false
resources: {}
image:
repository: docker
tag: 27.0.3-dind

0 comments on commit 040d9ab

Please sign in to comment.