Skip to content

Commit

Permalink
fix(deployment): Add basic resource requirements for config processor…
Browse files Browse the repository at this point in the history
… and other initContainers (#2340)

* add basic resource requirements for config processor

* specify more resources
  • Loading branch information
theosanderson authored and anna-parker committed Jul 29, 2024
1 parent 8f43b2d commit edbb186
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubernetes/loculus/templates/_config-processor.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
mountPath: /output
command: ["python3"]
args: ["/app/config-processor.py", "/input", "/output"]
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
env:
- name: LOCULUSSUB_smtpPassword
valueFrom:
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/loculus/templates/ena-submission-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ spec:
initContainers:
- name: ena-submission-flyway
image: "ghcr.io/loculus-project/ena-submission-flyway:{{ $dockerTag }}"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
command: ['flyway', 'migrate']
env:
- name: FLYWAY_URL
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/loculus/templates/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ spec:
initContainers:
{{- include "loculus.configProcessor" (dict "name" "keycloak-config" "dockerTag" $dockerTag) | nindent 8 }}
- name: keycloak-theme-prep
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
image: "ghcr.io/loculus-project/keycloakify:{{ $dockerTag }}"
volumeMounts:
- name: theme-volume
Expand Down

0 comments on commit edbb186

Please sign in to comment.