© The Author(s), under exclusive license to APress Media, LLC , part of Springer Nature 2021
P. MartinKuberneteshttps://doi.org/10.1007/978-1-4842-6494-2_5

5. The Workloads

Philippe Martin1  
(1)
Gif-sur-Yvette, France
 

The Pod is the masterpiece of the Kubernetes cluster architecture.

The fundamental goal of Kubernetes is to help you manage your containers. The Pod is the minimal piece deployable in a Kubernetes cluster, containing one or several containers.

From the kubectl command line, you can run a Pod containing a container as simply as running this command:
$ kubectl run nginx --image=nginx
pod/nginx created
By adding --dry-run=client -o yaml to the command, you can see the YAML template you would have to write to create the same Pod:
$ kubectl run ...

Get Kubernetes: Preparing for the CKA and CKAD Certifications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.