Command

Kubernetes Create a Job Command

The Kubernetes command to create a job is kubectl create job hello --image=busybox:1.28 -- echo "Hello World".

Quick Answer

Command
kubectl create job hello --image=busybox:1.28 -- echo "Hello World"
KubernetesCommand

Create a Job

Type this command
kubectl create job hello --image=busybox:1.28 -- echo "Hello World"

Creates a job that runs a command in a container.

Learn More

How to create a job in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl create job hello --image=busybox:1.28 -- echo "Hello World", replace any placeholders, and run it.

Kubernetes Create a Job Command

Run kubectl create job hello --image=busybox:1.28 -- echo "Hello World".

Related Commands

Frequently asked questions

What is the Kubernetes command to create a job?

Run kubectl create job hello --image=busybox:1.28 -- echo "Hello World".

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify