27041f7ca5
Remove cpu from resource limits while keeping memory limits and all requests intact. CPU limits cause unnecessary throttling and overcommit alerts when actual usage is far below limits.
25 lines
594 B
YAML
25 lines
594 B
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: dancefetcher
|
|
name: dancefetcher
|
|
spec:
|
|
schedule: '0 0 * * *'
|
|
concurrencyPolicy: Forbid
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: dancefetcher
|
|
image: oci.unbound.se/dancefinder/dancefetcher:${COMMIT}
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 20m
|
|
memory: 30Mi
|
|
restartPolicy: OnFailure
|