Questions tagged [kubernetes-cronjob]
301 questions
0
votes
1 answer
Scheduled jobs to sync files on an external filesystem in kubernetes
Is there a way to run a scheduled job that would pull some files regurarly on a mounted shared volume?
I have tried cronjob but apparently it doesn't supposed external filesystems
thanks in advance.

zozo6015
- 557
- 2
- 11
- 27
0
votes
1 answer
Kubernetes CronJob Pod status remains Running
I want to run a Kubernetes CronJob for a PHP script. Job executes properly but status of the POD remains running and after few minutes it becomes Error. It should be Completed status. Tried with different options but couldn't be able to resolve the…

Aruna
- 91
- 1
- 9
0
votes
1 answer
Creating Kubernetes Cronjob
import (
"context"
"fmt"
infinimeshv1beta1 "github.com/infinimesh/operator/pkg/apis/infinimesh/v1beta1"
v1beta1 "k8s.io/api/batch/v1beta1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1…

ayesha kaleem
- 77
- 2
- 7
0
votes
1 answer
Pod CPU / Memory requests in error state are not released
I have some pods created by CronJobs that are in Error state and it seems that the CPU / Memory requested by these pods are not released since kubelet is not killing them. It prevents other pods from being scheduled.
Is that the expected behavior ?…

cyberhippo
- 51
- 8
0
votes
1 answer
K8s Pod Anti Affinity for Cronjob Pod Even Scheduling
In a multi-tenant scenario with 500 namespaces, each with an identical Cronjob, labeled app=some-job, and 20 worker nodes, is it possible to coerce the k8s scheduler to spread the 500 Cronjob Pods evenly across the 20 nodes, such that any node would…

Tommy Adamski
- 567
- 3
- 18
0
votes
1 answer
Is there any way to link two Cron Jobs in OpenShift
everyone!
Is there any way to link two Cron Jobs in OpenShift? I have two Cron Jobs. The first one makes a .tar archive from some data. And the second one should operate with this archive. Can I add some condition to the second Cron Job, to make it…

Stas
- 53
- 7
0
votes
1 answer
upgrade helm chart upon patching one of its objects
Do we need to explicitly upgrade helm chart "Release-1" when we do patch a particular object separately , for eg. Cron job "CJ1"?
In my case, I have patched cron job to run every min.
I did not however upgrade the helm chart that deployed the cron…

Ankit Sharma
- 413
- 1
- 4
- 9
0
votes
1 answer
Want to load some XML files post K8s deployment
For my project, I want to load some XML's post deployment on adhoc when required(don't want to run on every deployment). loading them directly from Jenkins or GITLAB pipeline is taking longer time due to bad throughput to k8s cluster. I am using…

lucifer758
- 105
- 2
- 7
0
votes
1 answer
Share data between Local and Docker container in Kubernetes
I was successfully able to share data between a docker container and host using
docker run -it -v /path/to/host/folder:/container/path image-name
Now I am trying to run this docker image through a Kubernetes cronjob every minute for which my yaml…

nishant26900
- 28
- 3
0
votes
0 answers
failed to get keyvaultClient: failed to get key vault token
I have a python docker image that I want to deploy in the Kubernetes cluster in every 2-minute interval. Same time it mount azure key vault secret volume. Its failed with an error while creating the pod.
failed to get keyvaultClient: failed to get…

leo Martin
- 180
- 1
- 3
- 15
0
votes
2 answers
Crobjob not automatic running in redhat server
I have setup cronjob for root user in redhat server environment as follows by typing crontab -e for delete file in storage project
in my laravel project running if i run php artisan schedule:run, but not automatic run for every 5 minute,,, checked…

Diale
- 116
- 2
- 8
0
votes
3 answers
Deployment pod or CronJob for a job to be done every minute?
I'm starting in Kubernetes and I have a question about the CronJob, in my project I need a cron job to be launched every minute. On many tutorials people use the CronJob resource, I set it up and I see that every minute a pod is created to perform…

Youss
- 95
- 11
0
votes
0 answers
Kubernetes Cronjob runs more than once
From kubernetes docs if I have a Cronjob that is executed each day at 00:00 say, and should only run once, the job template should have these fields:
.spec.concurrencyPolicy: Replace
.spec.completions: 1
.spec.parallelism: 1
However, the job is …

jlpc
- 1
0
votes
1 answer
How to set up a cron
I have this PHP script which updates my database when the webpage is visited via https://......
cron()){
echo "Updated";
}
?>
How can I set a cronjob to visit this every…

vsol
- 97
- 2
- 10
0
votes
1 answer
Trying to create a simple CronJob
$ kubectl api-versions | grep batch
batch/v1
batch/v1beta1
When attempting to create this CronJob object which has a single container and an empty volume, I get this error:
$ kubectl apply -f test.yaml
error: error parsing test.yaml: error…

windowsrefund
- 9
- 1