liveBook · Manning

Kubernetes Deployment

As explained in Developer Experience on Kubernetes

A Deployment is a Kubernetes resource that manages replicated stateless application workloads and their rollout lifecycle.

A Deployment manages the lifecycle of a stateless, replicated application. Each replica runs in a Pod containing the application container. section 3.3.3

Deploying an application usually requires a Deployment plus a Service for cluster networking and an Ingress for access from outside the cluster. Manifests define these resources through the Kubernetes API. section 3.3.3 section 3.3.2

A practical Kubernetes inner loop treats a Deployment as part of a repeated workflow:

  • Package the application as a container image. section 3.3.2
  • Load the image into a local Kubernetes cluster when it is not available through a registry. section 3.3.2
  • Define or update the Deployment and related resource manifests. section 3.3.2
  • Apply the manifests to create or update the resources. section 3.3.2

Appointments Deployment

An appointments application uses an apps/v1 Deployment named appointments. Its selector and Pod template use the app: appointments label, while the container specifies the application image and obtains PostgreSQL connection values from a Secret.

How Developer Experience on Kubernetes covers it

How deep it goes
Defines the resource and its manifest role, then stops short of detailed controller internals or rollout mechanics.
Examples
Uses an appointments application with PostgreSQL configuration, ko-built images, kubectl commands, and a local Kubernetes cluster.
What it assumes
Assumes a provisioned Kubernetes cluster and container image, while introducing manifests and Kubernetes API resource management for application developers.
What you can do after
Operate/configure a stateless application Deployment by writing manifests, loading images, applying resources, and inspecting deployed objects.
How it connects
Connects Deployments with Pods, Services, Ingresses, container images, manifests, Secrets, and the Kubernetes API.

Also explained in

Compare how 11 books explain Kubernetes Deployment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.