Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The KCNA Book

You're reading from  The KCNA Book

Product type Book
Published in Jun 2023
Publisher Packt
ISBN-13 9781835080399
Pages 197 pages
Edition 1st Edition
Languages
Author (1):
Nigel Poulton Nigel Poulton
Profile icon Nigel Poulton

Table of Contents (12) Chapters

1. Getting started 2. 1: Setting the scene 3. 2: Cloud native architecture 4. 3: Container orchestration 5. 4: Kubernetes Fundamentals 6. 5: Cloud native application delivery 7. 6: Cloud native observability 8. The exam 9. 8: Sample test
10. What next Appendix A: Chapter quiz answers 1. Appendix B: Sample Test answers

Containers and pods

Let’s clear up some terminology before getting into the detail.

We sometimes use the terms container and pod to mean the same thing. However, a pod is actually a thin wrapper around one or more containers and is a mandatory requirement for any container that wants to run on Kubernetes. This means containers must be wrapped in a pod if they want to run on Kubernetes. The following extremely simple YAML file defines a pod with a single container.

1  apiVersion: v1
2  kind: Pod
3  metadata:
4    name: kcna-pod
5    labels:
6      project: kcna-book
7  spec:
8    containers:     <<==== Container is defined below here
9      - name: kcna-container
10       image: <container-image-goes-here>

Lines 1-7 give the pod and name and a label. Lines 8-10 show the container definition embedded within the overall pod definition. As the container is embedded within the pod definition, we say the pod “wraps the container”.

As well as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}