teluzia.Cloud Engineer · Day 119
CHAPTER 17 · KUBERNETES FUNDAMENTALS

Week 17 review, recall and recovery

30–90 min including independent practice6 topicsRecall, catch-up, or rest
LET’S MAKE THIS SIMPLE

What you’re learning today

Recover a local Kubernetes rollout and explain the traffic path. Use a local Deployment and Service, then annotate ConfigMap/Secret consumption, Ingress controller, readiness/liveness/startup, and rollout history. Write client -> ingress -> Service -> ready endpoint -> Pod, plus data-compatibility limits of rollback. Treat the review as a short evidence-based check: use the existing local lab or paper design, record which outcomes you actually reproduced, and repair one named gap before adding more complexity. Do not create extra billable resources just to prove recall.

Think of it this way

A weekly review is a recovery drill: demonstrate the system, inject one controlled mistake, and explain the evidence that proves repair.

TOPIC 01 / 06Step by step

Cluster API and objects

The control plane exposes the Kubernetes API and stores cluster state. Nodes run workloads. Objects have metadata, a desired spec, and observed status where applicable. Namespaces scope many resource names and permissions, but not every object is namespaced. API acceptance does not guarantee successful scheduling. For example, a Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.

WORKED EXAMPLE
A Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.
Why this matters

A Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.

A common trap

Do not overlook this operational distinction: API acceptance does not guarantee successful scheduling.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Cluster API and objects

The control plane exposes the Kubernetes API and stores cluster state. Nodes run workloads. Objects have metadata, a desired spec, and observed status where applicable. Namespaces scope many resource names and permissions, but not every object is namespaced. API acceptance does not guarantee successful scheduling. For example, a Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.

WORKED EXAMPLE
A Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.

Why this matters

A Pod spec requests a container image; status later reports Pending, Running, or other observed conditions.

A common trap

Do not overlook this operational distinction: API acceptance does not guarantee successful scheduling.

Deployments and ReplicaSets

A Deployment manages updates to Pod templates and replica counts through ReplicaSets. Controllers replace lost Pods to maintain desired state. Pod names are not stable application interfaces. Review selectors and template labels together because they identify which Pods belong to the workload. For example, a Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.

WORKED EXAMPLE
A Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.

Why this matters

A Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.

A common trap

Do not overlook this operational distinction: Review selectors and template labels together because they identify which Pods belong to the workload.

ConfigMaps and consumption

ConfigMaps store nonsecret key-value configuration that can be consumed as environment variables or files. Environment values are set at container startup and do not refresh automatically. Mounted updates have different behavior and timing, and applications must reread files when dynamic changes are intended. For example, aPP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.

WORKED EXAMPLE
APP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.

Why this matters

APP_MODE=dev comes from a ConfigMap; changing it does not alter an already-started container’s environment value.

A common trap

Do not overlook this operational distinction: Mounted updates have different behavior and timing, and applications must reread files when dynamic changes are intended.

Ingress and its controller

An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests. For example, host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

WORKED EXAMPLE
Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

Why this matters

Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

A common trap

Do not overlook this operational distinction: Gateway API is another evolving API family and should not be confused with traditional Ingress manifests.

Readiness and endpoint membership

Readiness determines whether a Pod should receive normal Service traffic. A failing readiness probe does not itself restart the container. Select a meaningful endpoint and suitable thresholds so dependency behavior does not make every replica leave service unnecessarily at once. For example, an unready Pod can remain Running while it is removed from ready Service endpoints.

WORKED EXAMPLE
An unready Pod can remain Running while it is removed from ready Service endpoints.

Why this matters

An unready Pod can remain Running while it is removed from ready Service endpoints.

A common trap

Do not overlook this operational distinction: Select a meaningful endpoint and suitable thresholds so dependency behavior does not make every replica leave service unnecessarily at once.

Rolling update strategy

Deployments update Pod templates through ReplicaSets. maxSurge controls temporary extra replicas and maxUnavailable limits reduced available capacity. Available capacity still depends on readiness and resource supply. A new image that cannot start can stall the rollout while some old replicas remain. For example, a two-replica app with maxUnavailable 0 needs enough spare capacity to add a new ready replica before removing an old one.

WORKED EXAMPLE
A two-replica app with maxUnavailable 0 needs enough spare capacity to add a new ready replica before removing an old one.

Why this matters

A two-replica app with maxUnavailable 0 needs enough spare capacity to add a new ready replica before removing an old one.

A common trap

Do not overlook this operational distinction: A new image that cannot start can stall the rollout while some old replicas remain.

KEEP THESE WITH YOU

Today’s takeaways

Cluster API and objects: The control plane exposes the Kubernetes API and stores cluster state. Nodes run workloads. Objects have metadata, a desired spec, and observed status where applicable. Namespaces scope many resource names and permissions, but not every object is namespaced. API acceptance does not guarantee successful scheduling.

Deployments and ReplicaSets: A Deployment manages updates to Pod templates and replica counts through ReplicaSets. Controllers replace lost Pods to maintain desired state. Pod names are not stable application interfaces. Review selectors and template labels together because they identify which Pods belong to the workload.

ConfigMaps and consumption: ConfigMaps store nonsecret key-value configuration that can be consumed as environment variables or files. Environment values are set at container startup and do not refresh automatically. Mounted updates have different behavior and timing, and applications must reread files when dynamic changes are intended.

Ingress and its controller: An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests.

Readiness and endpoint membership: Readiness determines whether a Pod should receive normal Service traffic. A failing readiness probe does not itself restart the container. Select a meaningful endpoint and suitable thresholds so dependency behavior does not make every replica leave service unnecessarily at once.

Rolling update strategy: Deployments update Pod templates through ReplicaSets. maxSurge controls temporary extra replicas and maxUnavailable limits reduced available capacity. Available capacity still depends on readiness and resource supply. A new image that cannot start can stall the rollout while some old replicas remain.

CLOSE THE LOOP

Ready to complete this day?

Verify your recall or recovery steps, then finish this review day.

Lab steps verifiedReview day: quiz optional