Questions tagged [kubernetes-jobs]

139 questions
0
votes
1 answer

Enable custom kubernetes scheduler for a namespace

I have a k8 job that brings up multiple pods. This job is used for load testing so all the pods need to come up at the same time. Job shouldn't be started until nodes are available for all pods to be scheduled. I came across kube-batch…
user2596613
  • 67
  • 1
  • 9
0
votes
1 answer

Kubernetes: How can I set a minimum lifetime of a job / pod?

On my master node I am running Kubernetes v1.16.3 which users will submit some jobs to our servers from time to time, which is working right now. However, in my case I have many users and they should not only have priorites on their jobs, but also a…
TheHeroOfTime
  • 751
  • 4
  • 9
  • 23
0
votes
1 answer

Autoscaling Kubernetes based on number of Jobs on AWS EKS

My cluster sometimes gets a "burst" of information and generates a large number of Kubernetes Jobs at once. And in other times I have ~0 active jobs. I'm wondering how can I make it autoscale the number of nodes to continuously be able to process…
user972014
  • 3,296
  • 6
  • 49
  • 89
0
votes
1 answer

Is there a way to automatically launch a followup (different) job only if a Kubernetes job fails?

Context: I currently have a Python Flask app which when receives a request, it automatically creates a Kubernetes job to run a process. Once the job finishes, it posts back the results to a specific endpoint (never changes). Depending on the…
0
votes
2 answers

Can a single kubernetes job contain multiple pods with different parallelism definitions?

I have a batch job which breaks down in 3 tasks that each depend on the previous finishing before they can start: Run a single pod Run N pods in parallel (.spec.completions = .spec.parallelism = N) Run M pods in parallel (.spec.completions =…
David Parks
  • 30,789
  • 47
  • 185
  • 328
0
votes
1 answer

Cleaning kubernetes jobs

I have a spinnaker pipeline that deploys a db-job to k8s. I would like to be able to delete the job before deploying another one, i.e. to add a spinnaker stage or to somehow configure job so it deletes itself. I know that cronjob would be great for…
0
votes
2 answers

kubernetes delay deployment

I have an application A and application B application B is not always needed and may be heavy to run. so we want to keep application B down usually so is there a way to delay the deployment of application B wait until receiving request from…
Mike_H
  • 11
0
votes
2 answers

kubernetes how to create new pod from an existing pod

I have the following doubt, let's say I have a kubernetes pod A with n=1 replicas, and I want that every x minutes it will create a new pod B of type "Job", I can create a job pod from kubectl without problems, but how can I make a pod be…
jmhostalet
  • 4,399
  • 4
  • 38
  • 47
0
votes
1 answer

Kubernetes: How to run a script with different user from root

I'm facing an issue on executing a cronjob.Below is the snippet of the code. containers: - name: ssm1db image: anuragh/ubuntu:mycronjob5 imagePullPolicy: Always command: - "/bin/sh" - "-c" -…
0
votes
1 answer

Create or edit Kubernetes secret from a job

I am trying to generate a Kubernetes secret from a Kubernetes job. The secret is a TLS certificate, for elasticsearch transport, I tried this job: apiVersion: batch/v1 kind: Job metadata: name: conso-security-tls-gen-certs spec: template: …
Thomas Decaux
  • 21,738
  • 2
  • 113
  • 124
0
votes
1 answer

Using initcontainers in a job to do some stuff after pod initialization

I'm currently trying to create a job in Kubernetes in a project I've just joined. This job should wait until 2 other pods are up and running, then run a .sh script to create some data for the testers in the application. I've figured out i should use…
Emre Acar
  • 920
  • 9
  • 24
0
votes
1 answer

How to update kubernetes job status of a job after being executed through swagger running a container deployment?

i have deployed my front end application through a deployment.yaml file using minikube having swagger-ui . This application simply takes in json queries and starts jobs on minikube which runs and terminates relevant containers. currently i have…
rehan
  • 143
  • 3
  • 17
0
votes
1 answer

How to Properly Update the Status of a Job

As far as I know, when most people want to know if a Kubernetes (or Spark even) Job is done, they initiate some sort of loop somewhere to periodically check if the Job is finished with the respective API. Right now, I'm doing that with Kubernetes in…
Philippe Fanaro
  • 6,148
  • 6
  • 38
  • 76
0
votes
2 answers

Having trouble to patch a job in kubernetes using postman

Created a job in kubernetes using post method using postman, now trying to patch the same job using patch method using postman and i am getting 400 bad request. Headers for post: Content-type application/yaml post method body: --- apiVersion:…
naveen kumar
  • 307
  • 2
  • 11
0
votes
1 answer

How to exit the helm hook if a PVC Claim is not found?

I have a post-upgrade helm hook job that mounts 2 PV Claims and copies data from one PVC to another. However under some conditions, a particular PVC might not be present. When i run this hook, the job is spawned but is sitting in "Pending" State…
Murali
  • 13
  • 2
1 2 3
9
10