O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pods and services

As already mentioned, Kubernetes does not deploy containers; instead, it launches pods. In its most simple form, a pod can actually be a single container; however, typically a pod is made up of several containers, storage, and networking.

The following is meant to be illustrative and not a practical example; we will be working through a practical example in the next chapter.

Think of a pod as a complete application; for example, if you were running a simple web application it would probably be running a single NGINX container—the pod definition file for this would look something like the following:

apiVersion: v1kind: Podmetadata:  name: nginxspec:  containers:  - name: nginx    image: nginx:latest    ports: - containerPort: 8080 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required