Cronjobs are not running any job on its scheduled times, the jobs runs only when one or more cronjobs are deleted. Is there some cronjob number limit ? Where to get log messages of this problem?
EDIT: I have exactly the same environment for development and production working perfectly, this only occurs in testing environment. This problem occurs daily and the workaround that I found was to delete one or more cronjobs to run what I want in that moment.
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: rcj-homebroker-bolsa
namespace: <KUBE_NAMESPACE>
spec:
schedule: "0 14 * * 1-5"
startingDeadlineSeconds: 600
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 5
failedJobsHistoryLimit: 5
jobTemplate:
spec:
activeDeadlineSeconds: 18000
backoffLimit: 0
template:
metadata:
labels:
cronjob: rcj-homebroker-bolsa
template:
spec:
containers:
- name: rcj-homebroker-bolsa
image: <DOCKER_TAG>
command: ["/bin/bash"]
args: ["./processBolsa.sh"]
lifecycle:
preStop:
exec:
command:
- /bin/bash
- pre-stop.sh