Skip to content

Commit 8a3d300

Browse files
committed
Add resrouce limit on grep and revert ttl on cron that did not see to apply
1 parent 90f2e55 commit 8a3d300

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/grep/base/cronjob.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ spec:
2323
[ -f /shared/metacpan_git/.init_complete ] \
2424
&& cd /shared/metacpan_git && git pull origin master
2525
imagePullPolicy: IfNotPresent
26-
ttlSecondsAfterFinished: 600 # Automatically delete 10 minutes after completion
2726
volumes:
2827
- name: gitrepo
2928
persistentVolumeClaim:

apps/grep/base/deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ spec:
3838
envFrom:
3939
- configMapRef:
4040
name: grep
41+
resources:
42+
# Manage how much memory is allocated, could add cpu if we wanted
43+
requests:
44+
memory: "1024Mi"
45+
limits:
46+
memory: "4072Mi"
4147
volumeMounts:
4248
- name: gitrepo
4349
mountPath: /shared/metacpan_git

0 commit comments

Comments
 (0)