Skip to content

Commit

Permalink
Add resrouce limit on grep and revert ttl on cron that did not see to…
Browse files Browse the repository at this point in the history
… apply
  • Loading branch information
ranguard committed Oct 11, 2024
1 parent 90f2e55 commit 8a3d300
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/grep/base/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
[ -f /shared/metacpan_git/.init_complete ] \
&& cd /shared/metacpan_git && git pull origin master
imagePullPolicy: IfNotPresent
ttlSecondsAfterFinished: 600 # Automatically delete 10 minutes after completion
volumes:
- name: gitrepo
persistentVolumeClaim:
Expand Down
6 changes: 6 additions & 0 deletions apps/grep/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
envFrom:
- configMapRef:
name: grep
resources:
# Manage how much memory is allocated, could add cpu if we wanted
requests:
memory: "1024Mi"
limits:
memory: "4072Mi"
volumeMounts:
- name: gitrepo
mountPath: /shared/metacpan_git
Expand Down

0 comments on commit 8a3d300

Please sign in to comment.