Part 2 · Fundamentals

Workloads, configuration and ownership

Prerequisites: 01-control-loops

02 / Choose the owner of the Pods

Four workload rows map Deployment to quote API, StatefulSet to stateful identities, DaemonSet to node collectors and Jobs to exports.

Scroll the diagram sideways for readable labels.

A workload choice map, not a guarantee that a StatefulSet replicates data. Database consistency remains the database or operator’s responsibility. [S03] [S35] [S36]

Learning objective and mental model verified

Choose between Deployment for interchangeable replicas, StatefulSet for stable Pod identities and storage association, DaemonSet for node-local facilities, and Job or CronJob for tasks that complete. A StatefulSet does not implement database replication or application consistency for you.

[S03]

Configuration mechanism verified

A ConfigMap stores non-confidential settings and can supply environment variables or mounted files. A Secret represents sensitive values. Base64 encoding does not make a secret confidential; control API access, storage protection and exposure through logs or manifests.

[S35] [S36]

Worked example synthesis

Use a Deployment for HTTP quote servers, a Job for an export and a DaemonSet for a node log agent on compatible EC2 compute. If running a database inside Kubernetes, choose an operator and storage recovery plan deliberately; stable identities alone do not satisfy the data contract.

[S03]

Decision and common pitfall synthesis

Use labels and selectors consistently so the right controller and Service identify the intended Pods. Updating a Deployment template creates a new ReplicaSet revision; editing a generated Pod is a short-lived change that its owner may replace. Treat runtime configuration changes as releases and verify the application reload behavior.

[S04] [S35]

Further improvement synthesis

Build a small inventory mapping every workload to its owner, dependencies, configuration source and restart behavior. This makes lifecycle ownership reviewable before a rollout or recovery exercise.

[S03] [S04]
Keep this: Choose the workload controller for the lifecycle you need, then separate configuration from the image.
Check yourself: Does StatefulSet mean “highly available database”?

No. It provides workload identity and ordering/storage association primitives; database replication, consistency, failover and backup must still be designed.

Sources & further reading

  1. [S03] Workloads

    Kubernetes · documentation · accessed 2026-10-10 · Living documentation; target-cluster compatibility must be checked · Not stated in retrieved page

    Supports: Deployment, StatefulSet, DaemonSet, Job and CronJob use cases

    Read the linked primary source for implementation details and current constraints.

  2. [S04] Deployments

    Kubernetes · documentation · accessed 2026-10-10 · Living documentation; target-cluster compatibility must be checked · Not stated in retrieved page

    Supports: ReplicaSet ownership, rolling updates, surge and unavailable settings

    Read the linked primary source for implementation details and current constraints.

  3. [S35] ConfigMaps

    Kubernetes · documentation · accessed 2026-10-10 · Living documentation; target-cluster compatibility must be checked · Not stated in retrieved page

    Supports: Non-confidential runtime configuration

    Read the linked primary source for implementation details and current constraints.

  4. [S36] Kubernetes Secret good practices

    Kubernetes · documentation · accessed 2026-10-10 · Living documentation; target-cluster compatibility must be checked · Not stated in retrieved page

    Supports: Base64 is encoding, least privilege and encryption considerations

    Read the linked primary source for implementation details and current constraints.