Defining Pods through Declarative Syntax
In this lesson, we will create and run Pods using declarative syntax.
We'll cover the following
Defining Pods Through Declarative Syntax
Even though a Pod can contain any number of containers, the most common use case is to use the single-container-in-a-Pod model. In such a case, a Pod is a wrapper around one container. From Kubernetes’ perspective, a Pod is the smallest unit.
We cannot tell Kubernetes to run a container. Instead, we ask it to create a Pod that wraps around a container.
Looking into a Pod’s Definition
Let’s take a look at a simple Pod definition by accessing the db.yml
file from the cloned git repository.
Get hands-on with 1400+ tech skills courses.