Skip to content

Latest commit

 

History

History
 
 

Jobs101

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Creating Your First Kubernetes Job

Non-parallel job

Create a job using following command:

$ kubectl create -f non-parallel-job.yml

Look at the job:

$ kubectl get jobs

Watch the pod status:

$ kubectl get -w pods

Delete a job:

$ kubectl delete -f non-parallel-job.yml

Multiple Parallel Jobs (Work Queue)

Parallel job

Create a job using following command:

$ kubectl create -f parallel-job.yml

Look at the job:

$ kubectl get jobs

Watch the pod status

$ kubectl get -w pods

Delete a job:

$ kubectl delete -f parallel-job.yml

Contributors

Sangam Biradar