Questions tagged [kubernetes-cronjob]
301 questions
0
votes
0 answers
Persisting a SQLite database as part of a CronJob in Kubernetes?
I have an application that I am migrating from an Azure App Service which has the concept of scheduled jobs - the most natural fit I see from a Kubernetes perspectice is to convert this into a CronJob.
However, the situation I am facing is that the…

Jan Martin
- 408
- 3
- 11
0
votes
0 answers
k8s cronjob not running newest helm version image
Currently im using Skaffold with helm, trying to deploy a cronjob.
My helm template cronjob is with these configurations:
apiVersion: batch/v1beta1
...
imagePullSecrets:
- name: "{{ .Values.image.imagePullSecrets }}"
…

RTC EG
- 13
- 3
0
votes
0 answers
Delete next kubernetes cronjob execution
I have a cronjob that runs every day. I’m looking for a cli way to delete only the next execution without changing the schedule code. E.g a cronjob runs every day at midnight. I need to delete tomorrow execution but keep all other executions (Tue,…

solopiu
- 718
- 1
- 9
- 28
0
votes
0 answers
Kubernetes Cronjobs leave the pod behind in Not Ready State after getting Completed
Recently all the cronjobs on my GKE cluster started showing some weird behaviour. With all the configurations remaining same for the cronjobs, out of nowhere, now my cronjobs are getting triggered, executed & completed but the Pod is left behind in…

Satyam Bhatia
- 166
- 6
0
votes
0 answers
Saving and managing timestamp scraped table to mysql using python
I have tried to look for some similar post
Storing the results of Web Scraping into Database
save scraped data to database python
How to save multiple scraped data to mysql using python
How to save multiple scraped data to mysql using python
Now my…

Loknath Basak
- 7
- 7
0
votes
0 answers
Kubernetes job to update the environment variables in pod
I want to update/inject existing/old environment variables in a pod. How can I do via kubernetes job
This is my daemon set :
apiVersion: apps/v1
kind: DaemonSet
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: aws-node
…

cloudbud
- 2,948
- 5
- 28
- 54
0
votes
3 answers
Does a kubernetes CronJob spin up a new container to run or does it just create a new process on an existing one?
For example if a kubernetes cronjob runs and saves a file to disk, will it save on one of the containers my application is running on or will it save on a separate cronjob pod and then be destroyed?

Sleepyhead.
- 71
- 6
0
votes
4 answers
Running a Node.js Application Once Every Year
I have been recently challenged with an architectural problem. Basically, I developed a Node.js application that fetches three zip files from Census.gov (13 MB, 1.2 MB and 6.7 GB) which takes about 15 to 20 minutes. After the files are downloaded…

Sam
- 57
- 7
0
votes
0 answers
Get scheduled time in pod for cronjob
I have a cron job in k8s with cron like
* * * * *
it runs every minute.
In the pod, how can I get when a certain pod was scheduled? I want to get the data time when the pod was gonna scheduled in my container as an env variable. If the pod crashes,…

Akshit Bansal
- 75
- 1
- 7
0
votes
0 answers
Kubernetes CronJob || Spring Boot CronJob
I have developed a spring boot cron job scheduled to run every 15 minutes which is working smoothly on Dev and INT ENV, the issue is on PROD the job is not executing at all, upon investigation I figured out there is a Kubernetes cron job that is…

Siya Nxuseka
- 67
- 3
- 8
0
votes
2 answers
How to pass creation timestamp to kubernetes cronjob
Inside my container I have in my spec.jobTemplate.spec.template.spec:
containers:
- name: "run"
env:
{{ include "schedule.envVariables" . | nindent 16 }}
- name: POD_NAME
…

maxisme
- 3,974
- 9
- 47
- 97
0
votes
0 answers
Run Symfony command with Cronjob Kubernetes
Each minute, I have a K8S Cronjob who run Symfony command. My problem is the huge time my pod warmup Symfony cache before execute the command : 56s ...
I search a solution for stock the cache in docker container but i can't execute cache:warmup…

Axel
- 46
- 2
0
votes
1 answer
Cronjob not scheduling in Kubernetes
Hi i'm new to this please someone help in this. thanks in advance
I want to schedule a job for deleting a pod for every 3 days in midnight.
Manually script is working fine but scheduling with crontab is not wokring.
note:- deployment is…

Nagaraj
- 31
- 7
0
votes
1 answer
How to pass kubernetes namespaces dynamically to k8s cronjob
I have a cronjob that cleans some job since my kubernetes is on older version so cannot use ttlafterfinished. How can I fetch the namespaces that have this job deployed and pass the namespaces name dynamically instead of repeating the same command…

cloudbud
- 2,948
- 5
- 28
- 54
0
votes
1 answer
How to reset k8s cronjob schedule?
Kubernetes have cronjob which can be used to schedule jobs periodically https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
Is there a way to reset cronjob schedule, let's say it's running at 0,5,10,15th min of hour at every 5 mins…

Shahzad
- 550
- 1
- 6
- 24