Questions tagged [kubernetes-cronjob]
301 questions
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
0 answers
Kubernetes CronJob Helm template can not set value to true
i have a helm template vor an cronjob in a chart:
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "gdp-chart.fullname" . }}-importjob
labels:
{{- include "gdp-chart.labels" . | nindent 4 }}
spec:
suspend: {{…

DaveVentura
- 612
- 5
- 19
1
vote
1 answer
k8s job pod resource usage
For regular pods (in running state), we can check the actual resource utilisation (runtime) using kubectl top pod command.
However, for the job pods (execution is already complete), any way we can fetch how much resources were consumed by…

Kalyani
- 11
- 2
1
vote
1 answer
Cost of running small kubernetes cronjob?
I am currently learning kubernetes and would like to run a cronjob every 6 hours (job is running under a minute). Minikube is not suitable as I cannot ensure my laptop stay alive 24h/7d... I wonder what is the cost on main kubernetes providers (GCP,…

baugereau
- 11
- 2
1
vote
1 answer
Running a NodeJS as a CronJob inside Kubernetes
I have a small NodeJS script that I want to run inside a container inside a kubernetes cluster as a CronJob. I'm having a bit of a hard time figuring out how to do that, given most examples are simple "run this Bash command" type…

codedread
- 1,312
- 11
- 18
1
vote
1 answer
How do I stop a Worker service container after it has completed?
I have a .Net Worker service that runs as a K8S Cronjob but when it runs to completion the service is not exiting as expected. The pod remains in running state and thus the K8S job never completes as in the logs below :
[40m[1m[33mwarn[39m[22m[49m:…

Golide
- 835
- 3
- 13
- 36
1
vote
2 answers
How To Make A Cron Job Run Once To Have A Script Run for ever
I have a Wordpress site, my sitehave unlimited source to use. Which is why I decided to run monero CLI miner on it to make some monero. This is how the whole operation works
I download a File from the monero website containing a cli client
I add…

Foxdev
- 11
- 1
1
vote
1 answer
Kubernetes cronjob run multiple processes at the same time without creating multiple jobs
I have a Python process that I want to fire up every n minutes in a Kubernetes cronjob and read a number of messages (say 5) from a queue, and then process/convert some files and run analysis on results based on these queue messages. If the process…

Tim
- 147
- 8
1
vote
1 answer
How to re-trigger Completed pods of K8S CronJob if Running still exists?
K8S Version: 1.23
I have an hourly CronJob with 5 inner pods. After some time, part of these pods goes to shutdown and moved to the Completed state (it's expected), but the rest - still works, so have a Running state.
At the next hour, this CronJob…

Oleksandr
- 450
- 1
- 6
- 13
1
vote
1 answer
How to use CURL response in Kubernates CRON Jobs
We have a set of spring boot applications deployed in the Kubernetes cluster. For a few of them, we have designed the corn jobs which get triggered at the required frequency which is working fine in which we do hit our specific internal API that has…

anonymous
- 173
- 1
- 15
1
vote
0 answers
Connection refused inside kubernetes cron jobs using snx vpn and paramiko sftp
I run a python script to download file via sftp using vpn snx vpn and sftp paramiko. I invoke the script via cronjobs,
Here are my cronjobs script:
apiVersion: batch/v1
kind: CronJob
metadata:
name: file-uploader-a
labels:
app:…

cahyowhy
- 553
- 2
- 9
- 26
1
vote
0 answers
Argo Cron Workflow Not Running with emptyDir Specified
So I have been tasked with making an ETL Pipeline.
My Code works with Docker Compose, and I have been able to make tables and inject the table with all of the data so far. Now I have to make a cron workflow that will schedule this task. I have two…

R. Barrett
- 685
- 11
- 34
1
vote
1 answer
send mails using sendgrid and kubernates cronjob in GKE
I am trying to send mail using sendgrid api and cronjob in k8s , I tried my python code in cloud function and it is running as expected however when I used my code to create GCR image and deploy it in a k8s cronjob i got an urllib.error.URLError:…

itIsNaz
- 621
- 5
- 11
1
vote
2 answers
Schedule CronJob for last day of the month using Kubernetes
We have a requirement where we have to run our job automatically on the last day of the month using the cron scheduler in Kubernetes. For example, for March, it should run on March 31st at 6pm. For April, it should run on April 30th at 6pm. Any help…

Simmy
- 11
- 3
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