Questions tagged [kubernetes-cronjob]
301 questions
1
vote
1 answer
Kubernetes: Cluster running but unresponsive to changes, cannot retrieve logs
I have an existing cluster running k8s version 1.12.8 on AWS EC2. The cluster contains several pods - some serving web traffic and others configured as scheduled CronJobs. The cluster has been running fine in it's current configuration for at least…

duncanhall
- 11,035
- 5
- 54
- 86
1
vote
0 answers
Beanstalk Cronjobs Stuck Suddenly and not working even a single Cronjob
I have setup beanstalk cronjobs, I deploy build on this Friday.e 17
July 2020. So far I judged all cronjobs were working well till
Saturday i.e 19 July 2020. But from Sunday i.e 20 July 2020, even
single cronjob is not working.
Then Today I…

Programmer
- 178
- 1
- 2
- 15
1
vote
1 answer
K8S cronjob scheduling on existing pod?
I have my application running in K8S pods. my application writes logs to a particular path for which I already have volume mounted on the pod. my requirement is to schedule cronjob which will trigger weekly once and read the logs from that pod…

Ruchi Dubey
- 11
- 5
1
vote
2 answers
Kubernetes pod marked as `Completed` despite the exit code `255`
Situation:
I've got a CronJob that often fails (this is expected at the moment). Due to the fact that the container performing the job, has a side-car, the dependencies are between the containers are expressed through bash scripts and common mounts…

Bernard Halas
- 972
- 11
- 24
1
vote
1 answer
Kubernetes, scaling cronjob pod to a different node
We have a single kubernetes cronjob, which task is to detect a newly uploaded file, and perform some operations on it. This operation runs every minute, and may take 10 minutes to complete.
At the moment it works, and it creates new pods for jobs as…

user3454396
- 403
- 4
- 11
1
vote
1 answer
How to run cron for every 2 minute but start at 5th minute of a specific hour?
Basically my cron is updating database every 2 minutes. But I need to run another cron which updates database every 24 hour. I need to make sure there are no race condition while the second cron (per day) is running i.e, both the cron can not run…

Ashish Raman
- 21
- 1
- 4
1
vote
1 answer
How to make kubernetes cronjob to identify ssh key from a folder
I have create cron job in kubernetes and I have ssh key in one of pod directory. when I am executing from command line its working fine, but when I am manually triggered , cron job is not recognizing .ssh folder .
scp -i …

Sanjay Chintha
- 326
- 1
- 4
- 21
1
vote
1 answer
Run a Kubernetes Cron Job from OpenShift to call a REST endpoint Periodically
I'm doing research on how to run a Spring Batch job on RedHat OpenShift as a Kubernetes Scheduled Job.
Steps have done,
1) Created a sample Spring Batch app that reads a .csv file that does simple processing and puts some data into in-memory h2 DB.…

Samme
- 11
- 1
- 2
1
vote
2 answers
How to trigger a cronjob at specific time in hybris
I want to trigger a cronjob at below timings every day
9 a.m. EST, 1 p.m. EST, 10 p.m. EST
Also do we have any other option than cron expression so that client can change this timing easily?
Regards,
Rasika

user3809154
- 53
- 2
- 6
1
vote
1 answer
Will I get concurrent runs of my CronJob in Kubernetes due to the documented limitations
According to this page in K8S,
"...two jobs might be created...".
If I set my concurrencyPolicy to "Forbid" - Will I still get optionally concurrent runs due to the scheduler, or will I get concurrent calls to run but be prevented?
I also opened an…

Shachar Silbert
- 29
- 3
1
vote
2 answers
Can Kubernetes Cronjobs Reuse Environment Variables From Existing Deployment?
I am using a Kubernetes Cronjob to run period database restores and post restore scripts which runs against the target environment which include tasks such as working with the database, redis, and file system.
The issue I am facing is that I have to…

leeman24
- 2,729
- 3
- 29
- 42
1
vote
1 answer
Scheduled task in SCDF with Kubernetes persistent volume
I'm trying to run a Task in SCDF on minikube. This task extracts data from a database and write them into a file. So I use a local persistent volume I configured in Kubernetes Dashboard to get my file.
It works fine when I run a simple execution…

CEDDM
- 19
- 5
1
vote
2 answers
When will be released Kubernetes CronJob stable version from betav1
I am using Kubernetes cron job to some scheduling , i can see kubernetes cron job still in beta version
I am using the Kubernetes version: v1.16.0
Please suggest me on this is fine to go with v1beta1 version for production ?

Pandit Biradar
- 1,777
- 3
- 20
- 35
1
vote
1 answer
Running cron job with id
Hi good day i was using cron job for task here is my cronjob script is like
cronjob.php?cron=1
but that link not working iam getting email like cron cant abe to open input file
why cron dont get id

Danial Afridi
- 97
- 1
- 4
1
vote
0 answers
How to Delete many Cron Job Log files in Cpanel
How Do I delete about 5,000 Cron job log files in a Cpanel.
The files are so many and I need to remove those files with the name shown in the image link attached here.
https://i.stack.imgur.com/ScnCR.png

CodeRed
- 81
- 2
- 10