Questions tagged [kubernetes-jobs]
139 questions
1
vote
0 answers
Suggestions on breaking down an IOT application consisting of jobs and services hosted in kubernetes in a way which would enable horizontal scaling
I have an IOT application which is architected in the following way :-
There are plants which has its own sets of devices.
Now the entire pipeline is deployed in kubernetes consisting of the following units :-
A job which wakes up every x seconds,…

Uddalak Das
- 121
- 6
1
vote
1 answer
HOW TO FIX: K8 job stoped and is not schedule any more
I had to stop a job in k8 by killing the pod, and now the job is not schedule anymore.
# Import
- name: cron-xml-import-foreman
schedule: "*/7 * * * *"
args:
- /bin/sh
- -c
/var/www/bash.sh; /usr/bin/php…

Criste Horge Lucian
- 11
- 1
- 2
1
vote
2 answers
Kubernetes job does not recognize environment
I am using the following job template:
apiVersion: batch/v1
kind: Job
metadata:
name: rotatedevcreds2
spec:
template:
metadata:
name: rotatedevcreds2
spec:
containers:
- name: shell
image: akanksha/dsserver:v7
…

codec
- 7,978
- 26
- 71
- 127
1
vote
2 answers
Send arguments to a Job
I have a docker Image that basically runs a one time script. That scripts takes 3 arguments. My docker file is
FROM
ARG URL
ARG USER
ARG PASSWORD
RUN apt update && apt install curl -y
COPY register.sh .
RUN chmod u+x…
user4889345
1
vote
2 answers
How to configure the restart times of Kubernetes Jobs?
Now we're using Kubernetes to run users' tasks. We need the features of Kubernetes Jobs to restart the tasks when failure occurs.
But our users may submit the problematic applications which always exit with non-zore code. Kubernetes will restart…

tobe
- 1,671
- 2
- 23
- 38
0
votes
0 answers
Kubernets 1.28 Jobs sidecar events
I want to use the new "sidecar" feature to monitor a container started in a job.
The goal is to monitor the main container stdout and react to its completion.
For the last part I want to use something like a hook to send a event to the sidecar when…

Saveriu CIANELLI
- 510
- 5
- 17
0
votes
1 answer
Handling Long-Running initContainers for Kubernetes Jobs
After a recent upgrade to GKE 1.26, I began encountering an issue related to a Kubernetes job that has been historically running without issue.
The job itself consists two components:
A simple initContainer that just functions as a health check…

Rion Williams
- 74,820
- 37
- 200
- 327
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
AKS Kubernetes job not able to recognise the image tag 'latest'
I am running a single kubernetes job , below is the yaml:
apiVersion: batch/v1
kind: Job
metadata:
name: pi
namespace: default
spec:
template:
spec:
imagePullSecrets:
- name: acrsecret
containers:
- name:…

Kishan Kumar
- 23
- 1
- 5
0
votes
1 answer
Trigger Kubernetes job on secret update
How do you trigger rerunning a job once one of its dependent secrets get updated?
For example, say I have this simple job:
apiVersion: batch/v1
kind: Job
metadata:
name: job-test
spec:
template:
metadata:
labels:
app:…

Daniel
- 8,655
- 5
- 60
- 87
0
votes
0 answers
How can I delete a local directory on a node after a Kubernetes job finishes running?
k8s 1.21
After job is successfully completed I need remove local directory /myjob-result on node. How I can do it?
### example job.yml
apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
template:
spec:
containers:
- name:…

tuytuy20
- 1
- 2
0
votes
1 answer
How to deploy a whole folder of manifests to Kubernetes with Skaffold
I'm trying to implement the suggested parallel processing expansion job from Kubernetes documentation itself https://kubernetes.io/docs/tasks/job/parallel-processing-expansion/
I have my expansion working, The build-jobs.sh is called on skaffold as…

Rômulo M. Farias
- 1,483
- 1
- 15
- 29
0
votes
0 answers
Where does Kubernetes store logs from Jobs by default?
I know that pod logs are stored at /var/log/containers/.log. Are jobs stored in the same location? The job spins up a pod and I can view the logs with kubectl logs , but I have fluent-bit configured and was expecting to see the…

mmiara
- 305
- 1
- 4
- 14
0
votes
0 answers
Jenkins waits for jMeter tests to be done and not blocking a worker
I have such a case:
jenkins trigger a jMeter test
the test is running as k8s job
jenkins job waits for test to be done
results land on external storage
jenkins downloads the results and presents as kind of an artifact in the job
And what I want to…

ash_dust
- 1
- 1
0
votes
0 answers
Kubernetes Indexed Job multiple retries of podsdespite completion
I have an IndexedJob. For certain runs Kubernetes (1.24.10 on AKS) is creating jobs for certain indices multiple times before marking the job to be complete. I am at a loss to figure out what might be causing this behaviour
apiVersion:…

user2894692
- 26
- 3