Questions tagged [kubernetes-cronjob]
301 questions
1
vote
3 answers
Connection refused to Kubernetes Pod from CronJob on the same Cluster
I am currently working with Kubernetes on Google Cloud with a microservice architecture. Where in a cluster I have different Pods and each of them can communicate with the others via curl using a ClusterIp.
My problem is that I need an endpoint of…

pdsm
- 101
- 2
- 4
1
vote
2 answers
CronJob pod status is ImagePullBackOff
I do a build off my console application and apply a cronjob successfully.
But when I look up the pods I get the status ImagePullBackOff (after ErrImagePull).
What could cause this missing Image Error?
Frank

Frank Mehlhop
- 1,480
- 4
- 25
- 48
1
vote
0 answers
Kubernetes CronJob Not Correctly Using Docker Secret
I have a Kubernetes cluster that I am trying to set up a CronJob on. I have the CronJob set up in the default namespace, with the image pull secret I want to use set up in the default namespace as well. I set the imagePullSecrets in the CronJob to…

northsideknight
- 1,519
- 1
- 15
- 24
1
vote
2 answers
error running command on cron jobs kubernetes
I am trying to setup cronjobs in my kubernetes cluster,I have micro service that import data from another api to my database. I want to run this command every 10 minutes. I have following cronjob manifest
apiVersion: v1
items:
- apiVersion:…

Jack
- 1,162
- 3
- 12
- 27
0
votes
0 answers
Send notification before and after every CronJob run in kubernetes
Please help me to know how can I send a notification before and after every CronJob run in kubernetes. I explored defining before and after job but they don't run everytime when CronJob trigger as per its schedule.

Ashish Sharma
- 574
- 7
- 18
0
votes
0 answers
Tekton wraps CronJob YAML command lines?
Why does Tekton turn this:
- |
npm install playwright
mkdir tests
echo "import { test, expect } from '@playwright/test'" >> tests/chat.spec.js;
echo "" >>…

Cees Timmerman
- 17,623
- 11
- 91
- 124
0
votes
0 answers
Resolving cloud storage permissions of service account used by Kubernetes CronJob
I have this Kubernetes Cronjob that is supposed to backup and upload the file to my cloud storage bucket.
As you can see in the args, I get my database password from my secrets in the first line, then I am passing it to and executing a database…

Ahmad Traboulsi
- 1
- 1
0
votes
1 answer
CronJob: unknown field "jobTemplate"
apiVersion: tekton.dev/v1beta1
kind: CronJob
metadata:
name: nightly-test
namespace: team-dev
spec:
schedule: "0 1 * * *"
jobTemplate:
spec:
backoffLimit: 6
ttlSecondsAfterFinished: 30
template:
metadata:
…

Cees Timmerman
- 17,623
- 11
- 91
- 124
0
votes
1 answer
Kubernetes RBAC for triggering `Jobs` and `CronJobs` without the `create` verb
With security in mind, I do not want to allow the create verb on Job and CronJob resources because it would allow someone to create a pod (using any image) and expose sensitive information. But I also want to allow the ability to trigger jobs that…

greenboi
- 3
- 2
0
votes
1 answer
Is there a simpler cronjob for keeping a cluster up only during workday hours?
Context: I'm relatively new to CronJobs and I have to "turn off" a GKE cluster during off hours (after 7pm/19h00 and until 9am/9h00) and during weekends (saturday and sunday, all day).
I followed this tutorial, got everything set up prety nice and…

Paula Gouveia
- 63
- 1
- 6
0
votes
1 answer
k8s cronjob - get image (tag) from config map?
In a k8s cronjob, can I pull the image (or just the tag) which is being used dynamically (at job execution time, not at deployment time using helm etc.) from a configmap (or something similar)?
apiVersion: batch/v1
kind: CronJob
metadata:
name:…

silent
- 14,494
- 4
- 46
- 86
0
votes
0 answers
Kubernets cronjob is not syncing the data to the PV that's attached to the pod?
I have a cronjob that runs to sync the aws s3 bucket to a PV , when i check the logs for the cronjob it shows the data is synced but when checking in the pod by execing changes are not showing up?
apiVersion: batch/v1
kind: CronJob
metadata:
…

Manoj G
- 1
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
Datadog monitor alert failing for eks cronjob
I am setting cronjob failure alert using Datadog and using below query
max(last_5m):max:kubernetes_state.job.completion.failed{kube_cronjob:cronjobnamexx} by {kube_cluster_name,kube_namespace,kube_cronjob} >= 1
Above query sends alert for the first…

Samu
- 1
0
votes
0 answers
Can we achieve a file transfer from host to pod using openshift cronjob
We have a requirement where we need to drop a file from host machine to the container on regular intervals.
Since we are in proof of concept phase we are managing manually using oc cp or oc sync commands. We came to know that openshift platform…

Malaiselvan
- 1,153
- 1
- 16
- 42