Skip to content

Commit

Permalink
set meaningful defaults for job resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s committed Dec 16, 2024
1 parent 2cdb401 commit 5c84c34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/rstudio-connect/files/job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ spec:
{{ $key }}: {{ toYaml $val }}
{{- end }}
{{- end }}
{{- else }}
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 500m
memory: 1Gi
{{- end }}
{{- if or (ne (len .Job.volumes) 0) (ne (len $templateData.pod.volumeMounts) 0) }}
volumeMounts:
Expand Down

0 comments on commit 5c84c34

Please sign in to comment.