kubernetes-jobs Questions
10
Solved
Is there a way to automatically remove completed Jobs besides making a CronJob to clean up completed Jobs?
The K8s Job Documentation states that the intended behavior of completed Jobs is for them...
Stokeontrent asked 29/12, 2016 at 18:39
6
Solved
What is the best way to wait for kubernetes job to be complete? I noticed a lot of suggestions to use:
kubectl wait --for=condition=complete job/myjob
but i think that only works if the job is suc...
Adria asked 9/3, 2019 at 2:31
3
I have sample k8s job as soon as you do kubectl apply the job gets triggered and the pods are created . How to control the pod creation?
apiVersion: batch/v1
kind: Job
metadata:
name: pi-with-tim...
Tilla asked 6/2, 2020 at 7:0
4
Solved
I'm looking for a kubectl command to list / delete all completed jobs
I've try:
kubectl get job --field-selector status.succeeded=1
But I get:
enfield selector "status.succeeded=1": field labe...
Cicerone asked 29/11, 2018 at 12:57
7
Solved
I'm looking for a way to tell (from within a script) when a Kubernetes Job has completed. I want to then get the logs out of the containers and perform cleanup.
What would be a good way to do thi...
Hiawatha asked 21/6, 2017 at 21:28
4
I have a Kubernetes cluster with following versions:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed3...
Rooney asked 24/8, 2021 at 5:39
1
Solved
I'm looking for a way to quickly run/restart a Job/Pod from the command line and override the command to be executed in the created container.
For context, I have a Kubernetes Job that gets execute...
Crocked asked 4/11, 2021 at 10:14
4
I've got a k8s cronjob that consists of an init container and a one pod container. If the init container fails, the Pod in the main container never gets started, and stays in "PodInitializing" inde...
Dogtired asked 15/11, 2018 at 7:59
2
Solved
I see that Kubernetes Job & Deployment provide very similar configuration. Both can deploy one or more pods with certain configuration. So I have few queries around these:
Is the pod specifica...
Lombardi asked 24/8, 2021 at 11:32
1
Solved
So I've a cron job like this:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: my-cron-job
spec:
schedule: "0 0 31 2 *"
failedJobsHistoryLimit: 3
successfulJobsHistoryLimit: 1
...
Defraud asked 19/5, 2021 at 10:10
5
I'm trying to replace my legacy job scheduler with Kubernetes job and wondering how to write sequential jobs as a Kubernetes job.
First, I wrote the following script to execute job1 and job2 in th...
Ungley asked 21/11, 2016 at 5:49
1
I am testing a pre-upgrade hook which just has a bash script that prints a string and sleep for 10 mins. When I run helm upgrade, it ran for some time and exited with the error in the title. I used...
Fantastically asked 5/11, 2020 at 0:36
1
Solved
I have a Kubernetes job that runs for some time, and I need to check if it failed or was successful.
I am checking this periodically:
kubectl describe job/myjob | grep "1 Succeeded"
This work...
Mccormac asked 10/1, 2019 at 22:1
3
Solved
I have a job definition based on example from kubernetes website.
apiVersion: batch/v1
kind: Job
metadata:
name: pi-with-timeout-6
spec:
activeDeadlineSeconds: 30
completions: 1
parallelism: 1
...
Gavage asked 6/10, 2016 at 10:11
1
© 2022 - 2025 — McMap. All rights reserved.