Questions tagged [kubernetes-cronjob]
301 questions
0
votes
1 answer
helm yaml iterate causes nil pointer
I am trying to iterate over jobsContainer array to generate multiple instances in the cronjob I am creating.
Ny values.yaml look like the below:
jobContainers:
- cleaner1:
env:
keepRunning: false
logsPath: /nfs/data_etl/logs
-…

Elias Ghali
- 823
- 1
- 13
- 29
0
votes
1 answer
helm cronjob multiple containers
I need to run multiple containers in one cronjob execution. Currently I have the following cronjob.yaml template:
jobTemplate:
spec:
template:
metadata:
labels:
app: {{ .Release.Name }}
cron: {{ .Values.filesjob.jobName…

Elias Ghali
- 823
- 1
- 13
- 29
0
votes
1 answer
how to setup codeigniter 3 cronjob in 20i server
I want to call the
url: http://page-finejewellery-co-uk.stackstaging.com/decorus/files
I have tried but not working
/usr/bin/php73 -q /home/sites/13a/1/1ff02ce814/www.page-finejewellery-co-uk.stackstaging.com/decorus/files >/dev/null 2>&1
Also…

Niaz Muhammad
- 51
- 4
0
votes
1 answer
NodAffinity solution for pods running out of space
I have wrote a configuration file to run several cronJobs.
Each cronjob runs in a separate pod, and all the pods the in the same node.
This causes my a node out of space issue and as a solution I read about NodeAffinity.
I want to add the…

jrz
- 1,213
- 4
- 20
- 54
0
votes
1 answer
K8s Cronjob Rolling Restart Every Day
I have one pod that I want to automatically restart once a day. I've looked at the Cronjob documentation and I think I'm close, but I keep getting an Exit Code 1 error. I'm not sure if there's an obvious error in my .yaml. If not, I can post the…

akabin
- 93
- 8
0
votes
1 answer
Kubernetes Cron Job for postgres db backup
Iam trying to create a cron job like this:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: postgres-backup
spec:
# Backup the database every day at 2AM
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
…

Rajesh Davuluri
- 1
- 1
0
votes
1 answer
Openshift Job exists, but doesn't get scheduled and can't be deleted
I have an openshift project with several cron jobs. While a pod was down they kept running and now I see the error
Cannot determine if job needs to be started: Too many missed start time
which is a known issue.…

Brandon Kauffman
- 1,515
- 1
- 7
- 33
0
votes
0 answers
Node application not starting immediately
I have a node application running as a pod in a Kubernetes cluster, but it always takes around 8 minutes for the application to start executing.
The application logs only appear at around the 8 mins mark, I don't think it has anything to do with the…

JustStarted
- 199
- 4
- 13
0
votes
1 answer
Kubernetes CronJob - Multiple CronJob configuration is not working
I have to run two CronJobs in Kubernetes (AWS-EKS) and I have below configuration. When I apply the template, only one CronJob is getting created. The one that gets created is always the second one. So it looks like the first one is getting…

abhihome
- 39
- 5
0
votes
0 answers
Kubernetes doesn't remove completed jobs for a Cronjob
Kubernetes doesn't delete a manually created completed job when historylimit is set when using newer versions of kubernetes clients.
mycron.yaml:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
namespace: myjob
spec:
schedule: "*…

beatrice
- 3,684
- 5
- 22
- 49
0
votes
1 answer
kubernetes job does not terminate
I have next kubernetes cronjob specification:
containers:
- args:
- -c
- |
export NLS_LANG=AMERICAN_AMERICA.UTF8 ;
echo "Exporting addresses" ;
sqlplus…

GintsGints
- 807
- 7
- 15
0
votes
1 answer
Is it possible to have a cronjob/pod inside a namespaced kubernetes (AKS) cluster which deletes "Completed" pods without using Kubectl?
Current state: From local command line, after authenticating to the cluster and setting the right context, I am using Kubectl to get list of "Completed" pods and then deleting them using a simple one liner. This works, but we want to automate…

shan
- 125
- 3
- 16
0
votes
1 answer
Docker how to set --net=host on aws red hat ec2
I successfully containerized my rds backup to a s3 upload through a k8 cronjob. However, it only works when when port 5432 is open on 0.0.0.0/0. Based on this Accessing RDS from within a Docker container not getting through security group? a work…

kddiji
- 205
- 1
- 3
- 14
0
votes
1 answer
Kubernetes cronjob missed schedule
There are around 50 cronjobs running in EKS cluster. I want to find out reason when Cronjob miss to schedule a job, It seems like a tedious process to check schedule, concurrency policy, active jobs, startingDeadlineSeconds. In spite of all these…

Jasmitha Meka
- 1,387
- 3
- 10
- 11
0
votes
1 answer
Setting up a Kubernetes Cronjob: Cannot get resource "horizontalpodautoscalers" in API group "autoscaling" in the namespace "staging"
I've tried to setup a cron job to patch a horizontal pod autoscaler, but the job returns horizontalpodautoscalers.autoscaling "my-web-service" is forbidden: User "system:serviceaccount:staging:sa-cron-runner" cannot get resource…

MDalt
- 1,681
- 2
- 24
- 46