The 33 figures from the design-patterns appendix, in chapter order.
A ConfigMap and a PersistentVolumeClaim feed a Pod as hard requirements, the scheduler applies its PriorityClass, and restricted-v2 injects the runtime UID
A Pod with declared requests and limits, gated on a ConfigMap and a PersistentVolumeClaim, scheduled under a PriorityClass, and admitted under restricted-v2 with an injected UID.
Download .excalidraw source
·
Edit on excalidraw.com
RollingUpdate keeps at least three Pods serving by surging one extra; Recreate drops to zero Pods before the replacement starts
RollingUpdate overlaps old and new Pods to avoid a gap; Recreate tears every replica down before any replacement starts.
Download .excalidraw source
·
Edit on excalidraw.com
A startup probe gates liveness and readiness until the container reports healthy; a readiness gate adds a condition no in-container probe can satisfy before the Pod joins the Service
The startup probe holds liveness and readiness back during boot; once it passes, both the readiness probe and any readiness gate must clear before the router sends traffic.
Download .excalidraw source
·
Edit on excalidraw.com
On termination OpenShift removes the Pod from endpoints, runs preStop, sends SIGTERM to PID 1, and SIGKILLs only if the grace period expires first
The termination sequence: endpoint removal, preStop, SIGTERM to PID 1, graceful exit, with SIGKILL as the backstop if terminationGracePeriodSeconds runs out.
Download .excalidraw source
·
Edit on excalidraw.com
nodeSelector and nodeAffinity place a Pod on a labeled node; podAntiAffinity needs a second node to spread; a taint repels Pods that lack a matching toleration
On single-node CRC: label matches place Pods on the one node, a taint repels Pods without a toleration, and podAntiAffinity leaves a second replica Pending for lack of a second node.
Download .excalidraw source
·
Edit on excalidraw.com
An init container gating the main container's start, with a nonzero exit leaving the Pod PodInitializing
The init container's exit code is the only gate: zero unblocks the main container, nonzero leaves it waiting.
Download .excalidraw source
·
Edit on excalidraw.com
A native sidecar starting before the app and stopping after it, the reverse of an ordinary second container
restartPolicy: Always on an init-container entry inverts the usual race: the sidecar brackets the app's lifetime.
Download .excalidraw source
·
Edit on excalidraw.com
shipping-service's JSON output translated into Prometheus exposition text by an adapter sidecar, with a scraper reading only the translated port
The adapter never changes what's true about shipping-service, only the syntax a scraper needs to read it.
Download .excalidraw source
·
Edit on excalidraw.com
shipping-service always connecting to 127.0.0.1:5432; the ambassador alone decides which real backend that address reaches
The app's connection target never changes; only the ambassador's upstream does.
Download .excalidraw source
·
Edit on excalidraw.com
A Job partitions shipment_events across three Pods by completion index, each writing its own CSV to a shared PVC
completions and parallelism control how many Pods run and succeed; completionMode: Indexed divides the data between them.
Download .excalidraw source
·
Edit on excalidraw.com
A CronJob firing on schedule to create successive Jobs, each writing its own report, with history limited to the most recent few
The CronJob controller creates one Job per tick; successfulJobsHistoryLimit bounds how many completed ones stick around.
Download .excalidraw source
·
Edit on excalidraw.com
A DaemonSet places one Pod per node; on OpenShift, reading the node's hostPath logs needs the privileged SCC and the spc_t SELinux type
A DaemonSet runs one Pod per node; hostPath mounts the node, and the SCC plus SELinux type decide whether it can actually read it.
Download .excalidraw source
·
Edit on excalidraw.com
An Eviction API request against shipping-service's single replica blocked by its PodDisruptionBudget, contrasted with a direct pod delete that bypasses it entirely
The PDB governs the Eviction API specifically; a direct oc delete pod never consults it.
Download .excalidraw source
·
Edit on excalidraw.com
payment-service's Service fronting three interchangeable Pods; one is deleted and replaced with a new identity while the Service keeps answering
No Pod owns storage or a name the Service depends on, so deleting one and getting a brand-new replacement changes nothing visible from outside.
Download .excalidraw source
·
Edit on excalidraw.com
A headless Service providing per-Pod DNS names for three ordinal StatefulSet Pods, each bound to its own PersistentVolumeClaim
Each ordinal gets a stable DNS name and its own sticky storage, created in order and reattached to the same claim on every restart.
Download .excalidraw source
·
Edit on excalidraw.com
Services of three types in front of shipping-service, with a Route exposing it to the host and an Ingress that becomes a second Route
A caller reaches a Service name or a Route host, never a Pod IP: CoreDNS and the router make the substitution invisible.
Download .excalidraw source
·
Edit on excalidraw.com
A Pod's own metadata, status, spec, and resources flowing into a container as Downward API environment variables and a mounted volume
fieldRef and resourceFieldRef resolve once into environment variables at start; a downwardAPI volume is the form that keeps updating afterward.
Download .excalidraw source
·
Edit on excalidraw.com
Three sources feeding one container's environment: a literal, a ConfigMap key, and a Secret key
SERVICE_SCHEMA is a literal, KAFKA_ORDER_TOPIC comes from a ConfigMap key, PG_USER from a Secret key; all three land as ordinary env vars.
Download .excalidraw source
·
Edit on excalidraw.com
The same ConfigMap and Secret, each reaching the container as bulk env vars and as a mounted file
envFrom bulk-exposes every key as an env var; a volumeMount delivers the same resource's keys as files, which is the shape a config-file reader actually needs.
Download .excalidraw source
·
Edit on excalidraw.com
A template and an overlay feeding an init container, which writes one rendered file into a shared volume before the main container starts
The init container runs once, renders the file once, and exits; the main container only ever sees the finished result.
Download .excalidraw source
·
Edit on excalidraw.com
ConfigMap v1 and v2, both immutable, with a Deployment's reference moving from one to the other and a rollout following
The old ConfigMap is never edited; a new one is created and the Deployment's reference moves to it, triggering an ordinary rolling update.
Download .excalidraw source
·
Edit on excalidraw.com
Two reconcile loops with the identical shape: the generic Watch to Reconcile to Owned-objects cycle, instantiated once as the built-in ReplicaSet controller over Pods and once as the custom ShippingPolicy controller over a Deployment and ConfigMap
The loop never changes shape; only the watched kind and the owned objects it acts on do.
Download .excalidraw source
·
Edit on excalidraw.com
An HPA and an Off-mode VPA on shipping-service reading the Pods themselves, contrasted with a KEDA ScaledObject on graphql-gateway reading a cron schedule from outside the Pods entirely, which is what lets it scale to zero
Resource-based scaling needs a running Pod to measure; event-based scaling measures something outside the Pod instead, and that's the entire difference.
Download .excalidraw source
·
Edit on excalidraw.com
A Docker-strategy Build runs Buildah in a Pod, from a local directory or a git commit, and pushes to the integrated registry at its in-cluster address; a Deployment on the same cluster pulls from that same address, while the host uses the external route
Both builds are real API objects; the registry address differs by whether the client is inside the cluster or outside it.
Download .excalidraw source
·
Edit on excalidraw.com
A ShippingPolicy custom resource watched by the operator's Reconcile loop, which owns a child Deployment and ConfigMap, creating and updating both from the spec and reading the Deployment's own status.replicas back into the ShippingPolicy's status conditions
The CRD gives the fulfillment domain's own concept, a shipping policy, a real place in the API; the reconciler is what keeps it true.
Download .excalidraw source
·
Edit on excalidraw.com
A ServiceAccount, bound by a RoleBinding to a Role naming two specific resources, with an unnamed Secret left outside the grant
`payment-service`'s ServiceAccount reaches `payment-config` and `patterns-postgres-app` by name through its Role; `other-team-secret` is never named, so no rule matches a request for it.
Download .excalidraw source
·
Edit on excalidraw.com
inventory-service denies all ingress by default; graphql-gateway is the one allowed caller on the gRPC port; payment-service has no allow rule at all
A test client's connection attempts are denied against both services; graphql-gateway's gRPC call to inventory-service is the one path an explicit rule opens.
Download .excalidraw source
·
Edit on excalidraw.com
A Pod's securityContext (non-root, dropped capabilities, read-only root) admitted by the restricted-v2 SCC which injects a UID, alongside a namespace's baseline Pod Security Standard rejecting a privileged Pod
inventory-service runs hardened in patterns, admitted by restricted-v2; a separate namespace shows the baseline standard admitting a compliant Pod and rejecting a privileged one outright.
Download .excalidraw source
·
Edit on excalidraw.com
A Secret reaching inventory-service two ways (an env var and a group-readable mounted file), with the Secret's own object flagged as base64, not encrypted, in etcd
Both paths read from the same inventory-db-credentials Secret; the file path narrows exposure, and neither path changes what the Secret object looks like at rest.
Download .excalidraw source
·
Edit on excalidraw.com
oc's windows into a running Pod: logs, exec, port-forward, describe/events, and the two debuggers (oc debug's pod copy and a kubectl debug ephemeral container)
Separate tools answering separate questions about the same running Pod; the two debuggers differ in whether they copy the Pod or attach to it.
Download .excalidraw source
·
Edit on excalidraw.com
Two ways to parameterize the same Deployment: a Helm chart rendering values.yaml into a tracked release, and a Kustomize base patched by dev and prod overlays with no release object
Same shipping-service image, same namespace, two deployment mechanisms that never have to know about each other.
Download .excalidraw source
·
Edit on excalidraw.com
A namespace with a ResourceQuota capping totals and a LimitRange defaulting and bounding each container, with ClusterResourceQuota extending the same idea across projects and PriorityClass deciding order underneath
ResourceQuota counts and caps; LimitRange defaults and bounds; PriorityClass decides who wins when either is tight.
Download .excalidraw source
·
Edit on excalidraw.com
The DO280/EX280 objective areas this appendix maps to, each labeled with how many chapters land in it, with security and configuration carrying the largest clusters
Security and application configuration carry the largest clusters of chapters, matching where restricted-v2, RBAC, and the configuration family concentrate.
Download .excalidraw source
·
Edit on excalidraw.com