Cronjobber is the cronjob controller from Kubernetes patched with time zone support.
Questions tagged [k8s-cronjobber]
21 questions
7
votes
1 answer
How can I specify cron timezone in k8s cron job?
According to documentation (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/) I can create cron job in k8s with specify timezone like: "CRON_TZ=UTC 0 23 * * *"
My deployment file is:
apiVersion: batch/v1
kind: CronJob
metadata:
…

yihereg819
- 131
- 1
- 6
7
votes
1 answer
Kubernetes Cronjob: Reset missed start times after cluster recovery
I have a cluster that includes a Cronjob scheduled to run every 5 minutes.
We recently experienced an issue that incurred downtime and required manual recovery of the cluster. Although now healthy again, this particular cronjob is failing to run…

duncanhall
- 11,035
- 5
- 54
- 86
6
votes
3 answers
how to run a cronjob every 10 seconds in kubernetes?
"I just want to run a cronjob in Kubernetes in every 10 seconds. what would be the imperative command for that?"

Ishara Nuwan
- 69
- 1
- 1
- 2
3
votes
1 answer
AWS EKS K8s Service and CronJob/Jon same node
I have a k8s deployment which consists of a cron job (runs hourly), service (runs the http service) and a storage class (pvc to store data, using gp2).
The issue I am seeing is that gp2 is only readwriteonce.
I notice when the cron job creates a job…

Lemex
- 3,772
- 14
- 53
- 87
3
votes
1 answer
kubernetes to print specific columns
Need only specific columns using JSONPATH query in kubernetes:
$ kubectl get node
NAME STATUS ROLES AGE VERSION
1 Ready master 35d v1.18.6
2 Ready 35d v1.18.6
3 Ready 35d v1.18.6
4 …

raju
- 129
- 1
- 9
2
votes
4 answers
How to make cron job start after x seconds?
I think I am misunderstanding Kubernetes CronJobs. On the CKAD exam there was a question to have a CronJob run every minute, but it should start after an arbitrary amount of time. I don't see any properties for CronJobs or Jobs to have them start…

humiliatedpenguin
- 235
- 1
- 2
- 7
1
vote
2 answers
How to automate uploading AKS logs to Azure storage account
I have a task to automate the uploading of AKS logs (control plane and workload) to the Azure storage account so that they can be viewed later or may be an alert notification to the email/teams channel in case of any failure. It would have been an…

piyush sachdeva
- 416
- 4
- 14
1
vote
2 answers
K8s Job being constantly recreated
I have a cronjob that keeps restarting, despite its RestartPolicy set to Never:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: cron-zombie-pod-killer
spec:
schedule: "*/9 * * * *"
successfulJobsHistoryLimit: 1
jobTemplate:
…

Milkncookiez
- 6,817
- 10
- 57
- 96
1
vote
1 answer
Commands passed to a Kubernetes Job and Pod
I've a perl command which I need to pass to a kubernetes job. Command computes and prints the value of pi to 2000 places.
perl -Mbignum=bpi -wle 'print bpi(2000)'
I've passed the command to a job yaml file as shown below. Via kubectl, yaml file…

Naseem Khan
- 73
- 12
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
3 answers
no kind "TZCronJob" is registered for version "cronjobber.hidde.co/v1alpha1"
Background
I am using TZCronJob to run cronjobs with timezones in Kubernetes. A sample cronjob.yaml might look like the following (as per the cronjobber docs). Note the timezone specified, the schedule, and kind=TZCronJob:
apiVersion:…

Scott Skiles
- 3,647
- 6
- 40
- 64
0
votes
0 answers
I need to allow cronjobs with parallelism and concurrency, but I would like to limit the number of job executions to 3 at the same time
I want to allow the execution of only 3 jobs (with 6 parallel each) at the same time (concurrencyPolicy=Allow).
On the fourth build attempt, with the previous three still running, Kubernetes should behave like spec.concurrencyPolicy=Forbid.
It is…

Luciano Lisbôa
- 1
- 1
0
votes
0 answers
Kubernetes cronjob doesn't use env variables
I have a Cron job in Kubernetes that does not use the urls in env variables to go to another api's find information to use in him, returning errors like will be using the urls of the appsettings/launchsettings from the console application…

AndreeH
- 99
- 4
0
votes
1 answer
unable to execute a bash script in k8s cronjob pod's container
Team,
/bin/bash: line 5: ./repo/clone.sh: No such file or directory
cannot run above file but I can cat it well. I tried my best and still trying to find but no luck so far..
my requirement is to mount bash script from config map to a directory…

AhmFM
- 1,552
- 3
- 23
- 53
0
votes
0 answers
Clustered Env-SpringBootApplication-Quartz job not executing intermittently on some day
Micro service[spring boot java application] is hosted on clustered environment and enabled hpa.
We are having few jobs which run daily. Those are the quartz jobs integration in java. We are using 2.3.0 version for quartz dependencies and…

Phoebe
- 1
- 1