Questions tagged [kubernetes-jobs]

139 questions
0
votes
1 answer

Indexed fixed completion count job, more than one pod with the same index

A bit unclear sentence in the doco: Note that, although rare, more than one Pod could be started for the same index, but only one of them will count towards the completion count. So say it happens, there are two pods in an Indexed job with the…
Mikha
  • 491
  • 2
  • 13
0
votes
1 answer

How to delete kubernetes failed/completed jobs

How can I clean up the failed and completed pods created by kubernetes job automatically without using cronjob. I want to keep only the last pod created by job. How can we accomplish that?
cloudbud
  • 2,948
  • 5
  • 28
  • 54
0
votes
1 answer

What could be the CLI command to hold a Kubernetes Job (Not a cronjob)

I am writing the scripting where I want to put my job on hold and resume it after sometime in the open shift platform. Is there any CLI command to hold a job for sometime and resume it later.
Prabhakar
  • 69
  • 2
  • 8
0
votes
1 answer

Meaning of the completions column of `kubectl get jobs` when parallelism > 1

I am able to run successfully a Kubernetes Job with multiple parallel worker processes, by following the example provided in "Fine Parallel Processing Using a Work Queue" in the official Kubernetes…
nicolas.f.g
  • 1,166
  • 10
  • 12
0
votes
1 answer

Is it possible to enable TTL controller in aks cluster for job automatic deletion

I want to delete completed jobs in my aks cluster after certain time interval using TTL controller, but I'm unable to enable TTL controller in aks cluster, Is there any solution for this problem... Thanks in advance...
0
votes
1 answer

Extract and assign values from one manifest to another within the cluster

I am practice GitOps and would like to automate as much as possible. ArgoCD together with Crossplane creates my clusters based on manifests. When the cluster is up and running, Crossplane creates a Secret containing a regular kubeconfig file, which…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
0 answers

Why does helm3 install trigger pre-delete and not in Helm2

I have a project that needs to use mutating Webhook, based on namespaceselector, which needs to add specific label to namespace first. I used three hooks, hook1(pre-install, pre-delete,etc) to create RBAC for hook2(pre-install) to add a label to…
0
votes
1 answer

Kubernetes Pod env with one single quotes became three after created by Kubernetes

This Kubernetes Pod object has an Env whose value is a string with one single quote '"0.0.0.0/0"'. clientSet, err := initClientSet() if err != nil { klog.ErrorS(err, "failed to init clientSet") return err } ctx :=…
zzxwill
  • 536
  • 2
  • 6
  • 16
0
votes
1 answer

Kubernetes post-install job

I have a kubernetes job with post-install hook. Sometimes this hook fails but I want the helm upgrade to still succeed and ignore failures in post-install job. Is this doable?
alltej
  • 6,787
  • 10
  • 46
  • 87
0
votes
1 answer

Is it possible to have a worker pool for Kubernetes Jobs to avoid pod creation time?

As of now, I'm spinning up individual K8s jobs for a specific processing task. Some of these tasks require significant CPU/memory but other are fairly simple and could easily be accomplished with in-memory processing. A simple task that takes a few…
vercingortix
  • 199
  • 2
  • 15
0
votes
0 answers

K8s Pod OOM but the status shows succeeded

version k8s 1.15 problem I run a job with 2Gi memory limit which seems to be not enough. The status of the job shows "completed" with 1 succeeded pod; what strange is that the pod terminated with exitcode 0, which is known as completed…
0
votes
1 answer

Dynamic Command for Kubernetes Jobs

So hopefully this makes sense to the non-Djangoers of the k8s community. I will try my best to explain the setup / reasoning. With Django, we have LOTS of what are called management commands that we can run within the scope and environment of our…
Micheal J. Roberts
  • 3,735
  • 4
  • 37
  • 76
0
votes
0 answers

Why is Kubernetes succeeded count goes down when using Job API

While running a job on a Kubernetes cluster on GKE, I've noticed the following behavior (this is the output of kubectl get jobs --watch: f76b2146-c302-4d0e-94a7-9299675bdc5b 2/8 4h4m 4h4m f76b2146-c302-4d0e-94a7-9299675bdc5b …
0
votes
3 answers

Schedule a job with replicated containers on different hosts

I am trying to run a Kubernetes job that will deploy the same pod on each host and run the same command in each of the pods (identical execution). There are 5 workers in the cluster worker01, worker02, ..., worker05. This definition schedules one…
John Karasev
  • 151
  • 2
  • 11
0
votes
0 answers

Re-run a kuberenetes job without deleting the previous job

I have a script within my docker image which checks for the number of available PVs in my kubernetes cluster. If we are short in pv, the script exit 1 and if we are good, then it will return 0. I want to trigger this deployment from Jenkins every 15…
Nova
  • 1
  • 2